reinstall-for-qt can only be run from pacman/pamac

This commit is contained in:
Rokosun 2022-09-20 02:17:27 +02:00
parent 4d115e390c
commit 93a530ee36

View File

@ -1,3 +1,5 @@
#!/bin/bash
parent_process=$(ps -p $PPID -o comm=)
[ "$parent_process" = 'pacman' ] || [ "$parent_process" = 'pamac-daemon' ] || exit
rm /var/lib/pacman/db.lck
pacman --noconfirm -S qt5-styleplugins qt6gtk2