mirror of
https://github.com/winapps-org/winapps.git
synced 2025-06-04 06:07: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
|
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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user