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

Merged
tio merged 1 commits from rokosun-patch-2 into main 2022-09-20 00:18:19 +00:00
1 changed files with 2 additions and 0 deletions

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