mirror of
https://github.com/winapps-org/winapps.git
synced 2025-06-02 13:17:19 +02:00
fix: don't quote $SUDO
This commit is contained in:
parent
7ce6f879e4
commit
9126baa699
12
installer.sh
12
installer.sh
@ -282,27 +282,27 @@ function waUninstallUser() {
|
||||
grep -l -d skip "bin/winapps" "$HOME/.local/share/applications/"* -s | while IFS= read -r F
|
||||
do
|
||||
echo -n " Removing $F..."
|
||||
"$SUDO" rm "$F"
|
||||
$SUDO rm "$F"
|
||||
echo " Finished."
|
||||
done
|
||||
grep -l -d skip "bin/winapps" "$HOME/.local/bin/"* -s | while IFS= read -r F
|
||||
do
|
||||
echo -n " Removing $F..."
|
||||
"$SUDO" rm "$F"
|
||||
$SUDO rm "$F"
|
||||
echo " Finished."
|
||||
done
|
||||
}
|
||||
|
||||
function waUninstallSystem() {
|
||||
"$SUDO" rm -f "/usr/local/bin/winapps"
|
||||
"$SUDO" rm -rf "/usr/local/share/winapps"
|
||||
$SUDO rm -f "/usr/local/bin/winapps"
|
||||
$SUDO rm -rf "/usr/local/share/winapps"
|
||||
grep -l -d skip "bin/winapps" "/usr/share/applications/"* -s | while IFS= read -r F
|
||||
do
|
||||
if [ -z "$SUDO" ]; then
|
||||
waNoSudo
|
||||
fi
|
||||
echo -n " Removing $F..."
|
||||
"$SUDO" rm "$F"
|
||||
$SUDO rm "$F"
|
||||
echo " Finished."
|
||||
done
|
||||
grep -l -d skip "bin/winapps" "/usr/local/bin/"* -s | while IFS= read -r F
|
||||
@ -311,7 +311,7 @@ function waUninstallSystem() {
|
||||
waNoSudo
|
||||
fi
|
||||
echo -n " Removing $F..."
|
||||
"$SUDO" rm "$F"
|
||||
$SUDO rm "$F"
|
||||
echo " Finished."
|
||||
done
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user