diff --git a/netinstall.sh b/netinstall.sh index db0a6db..f3ca0e6 100644 --- a/netinstall.sh +++ b/netinstall.sh @@ -14,22 +14,23 @@ cd ark-server-tools-master/tools chmod +x install.sh sh install.sh $1 -status = $? +status=$? # Remove the installation files rm -f master.tar.gz rm -rf /tmp/ark-server-tools-master +# Print messages +case "$status" in + "0") + echo "ARK Server Tools were correctly installed in your system inside the home directory of $1!" + ;; -if (( $status == 0 )); then - echo "ARK Server Tools were correctly installed in your system inside the home directory of $1!" -fi - -if (( $status == 1 )); then - echo "Something where wrong :(" -fi - -if (( $status == 2 )); then - echo "WARNING: A previous version of ARK Server Tools was detected in your system, your old configuration was not overwritten. You may need to manually update it." - echo "ARK Server Tools were correctly installed in your system inside the home directory of $1!" -fi + "1") + echo "Something where wrong :(" + ;; + "2") + echo "WARNING: A previous version of ARK Server Tools was detected in your system, your old configuration was not overwritten. You may need to manually update it." + echo "ARK Server Tools were correctly installed in your system inside the home directory of $1!" + ;; +esac