mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-23 10:39:48 +02: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
|
||||
|
||||
if [ $1 = '--tweaks' ] && [ ! -f ".tweaksinstalled" ]; then
|
||||
if [ "$1" = '--tweaks' ] && [ ! -f ".tweaksinstalled" ]; then
|
||||
echo "[*] Tweaks enabled, running postinstall."
|
||||
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"
|
||||
@@ -651,7 +651,7 @@ rm -rf work rdwork
|
||||
echo ""
|
||||
echo "Done!"
|
||||
echo "The device should now boot to iOS"
|
||||
if [ $1 = '--tweaks' ]; then
|
||||
if [ "$1" = '--tweaks' ]; then
|
||||
echo "Tweaks have been started, enjoy!"
|
||||
echo "Please refer to https://github.com/itsnebulalol/ios15-tweaks for supported tweaks"
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user