mirror of
https://github.com/palera1n/palera1n.git
synced 2026-12-01 13:52:44 +01:00
Add quotes around variable to handle empty value (#145)
When $1 is empty, the script prints an error since it expands to `if [ = '--tweaks' ]`.
This commit is contained in:
1 parent
398e1e7cdf
commit
1481b3d415
1 file changed
+2
-2
+2
-2
@@ -576,7 +576,7 @@ if [ "$os" = 'Darwin' ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $1 = '--tweaks' ] && [ ! -f ".tweaksinstalled" ]; then
|
if [ "$1" = '--tweaks' ] && [ ! -f ".tweaksinstalled" ]; then
|
||||||
echo "[*] Tweaks enabled, running postinstall."
|
echo "[*] Tweaks enabled, running postinstall."
|
||||||
echo "[*] Open the Tips app, and click install"
|
echo "[*] Open the Tips app, and click install"
|
||||||
echo "[!] Install OpenSSH, curl, and wget from Sileo (add the repo mineek.github.io/repo). Sileo errors are fine. Then, press any key to continue"
|
echo "[!] Install OpenSSH, curl, and wget from Sileo (add the repo mineek.github.io/repo). Sileo errors are fine. Then, press any key to continue"
|
||||||
@@ -651,7 +651,7 @@ rm -rf work rdwork
|
|||||||
echo ""
|
echo ""
|
||||||
echo "Done!"
|
echo "Done!"
|
||||||
echo "The device should now boot to iOS"
|
echo "The device should now boot to iOS"
|
||||||
if [ $1 = '--tweaks' ]; then
|
if [ "$1" = '--tweaks' ]; then
|
||||||
echo "Tweaks have been started, enjoy!"
|
echo "Tweaks have been started, enjoy!"
|
||||||
echo "Please refer to https://github.com/itsnebulalol/ios15-tweaks for supported tweaks"
|
echo "Please refer to https://github.com/itsnebulalol/ios15-tweaks for supported tweaks"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in new issue
Block a user