Require bash as necessary. Direct user to zbstudio install instructions.

master
poikilos 2021-03-25 17:57:30 -04:00
parent 709da940a8
commit 43bbdd147d
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
echo echo
zs_dest=/opt/zbstudio zs_dest=/opt/zbstudio
if [ "$1" == "uninstall" ]; then if [ "$1" == "uninstall" ]; then
@ -27,7 +27,7 @@ if [ "$1" == "uninstall" ]; then
end_ret=1 end_ret=1
end_msg="Uninstall FAILED." end_msg="Uninstall FAILED."
fi fi
bad_file="$zs_dest/zbstudio/api/lua/minetest.lua" bad_file="$zs_dest/zbstudio/api/lua/minetest.lua"
dest_file="$zs_dest/api/lua/minetest.lua" dest_file="$zs_dest/api/lua/minetest.lua"
if [ -f "$bad_file" ]; then if [ -f "$bad_file" ]; then
@ -88,7 +88,7 @@ if [ ! -d "$zs_dest" ]; then
fi fi
if [ ! -d "$zs_dest" ]; then if [ ! -d "$zs_dest" ]; then
echo "ERROR: nothing done since missing $zs_dest." echo "ERROR: nothing done since missing $zs_dest."
echo "You first must install ZeroBrane studio." echo "You first must install ZeroBrane studio (See readme)."
exit 3 exit 3
fi fi
cd "$mi_path" cd "$mi_path"