Require bash as necessary. Direct user to zbstudio install instructions.
parent
709da940a8
commit
43bbdd147d
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue