mirror of
https://github.com/winapps-org/winapps.git
synced 2025-08-05 18:28:26 +02:00
fix: don't quote $SUDO
This commit is contained in:
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
|
grep -l -d skip "bin/winapps" "$HOME/.local/share/applications/"* -s | while IFS= read -r F
|
||||||
do
|
do
|
||||||
echo -n " Removing $F..."
|
echo -n " Removing $F..."
|
||||||
"$SUDO" rm "$F"
|
$SUDO rm "$F"
|
||||||
echo " Finished."
|
echo " Finished."
|
||||||
done
|
done
|
||||||
grep -l -d skip "bin/winapps" "$HOME/.local/bin/"* -s | while IFS= read -r F
|
grep -l -d skip "bin/winapps" "$HOME/.local/bin/"* -s | while IFS= read -r F
|
||||||
do
|
do
|
||||||
echo -n " Removing $F..."
|
echo -n " Removing $F..."
|
||||||
"$SUDO" rm "$F"
|
$SUDO rm "$F"
|
||||||
echo " Finished."
|
echo " Finished."
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
function waUninstallSystem() {
|
function waUninstallSystem() {
|
||||||
"$SUDO" rm -f "/usr/local/bin/winapps"
|
$SUDO rm -f "/usr/local/bin/winapps"
|
||||||
"$SUDO" rm -rf "/usr/local/share/winapps"
|
$SUDO rm -rf "/usr/local/share/winapps"
|
||||||
grep -l -d skip "bin/winapps" "/usr/share/applications/"* -s | while IFS= read -r F
|
grep -l -d skip "bin/winapps" "/usr/share/applications/"* -s | while IFS= read -r F
|
||||||
do
|
do
|
||||||
if [ -z "$SUDO" ]; then
|
if [ -z "$SUDO" ]; then
|
||||||
waNoSudo
|
waNoSudo
|
||||||
fi
|
fi
|
||||||
echo -n " Removing $F..."
|
echo -n " Removing $F..."
|
||||||
"$SUDO" rm "$F"
|
$SUDO rm "$F"
|
||||||
echo " Finished."
|
echo " Finished."
|
||||||
done
|
done
|
||||||
grep -l -d skip "bin/winapps" "/usr/local/bin/"* -s | while IFS= read -r F
|
grep -l -d skip "bin/winapps" "/usr/local/bin/"* -s | while IFS= read -r F
|
||||||
@@ -311,7 +311,7 @@ function waUninstallSystem() {
|
|||||||
waNoSudo
|
waNoSudo
|
||||||
fi
|
fi
|
||||||
echo -n " Removing $F..."
|
echo -n " Removing $F..."
|
||||||
"$SUDO" rm "$F"
|
$SUDO rm "$F"
|
||||||
echo " Finished."
|
echo " Finished."
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user