fixed exit codes

This commit is contained in:
tangobravo14
2024-03-07 14:42:08 +00:00
parent 948643de90
commit 681ca21cd1
4 changed files with 27 additions and 5 deletions
+6 -1
View File
@@ -56,7 +56,12 @@ date, click continue." | yad \
--button="Continue:0" \
--title "Ensure your scripts are up to date." \
${r} ${c}
rc=$?
if [[ $rc == 0 ]]; then
echo "Continuing with current version"
elif [[ $rc == 1 ]]; then
exit 1
fi
}
function dep_check() {
+7
View File
@@ -163,6 +163,13 @@ date, click continue." | yad \
--button="Continue:0" \
--title "Ensure your scripts are up to date." \
${r} ${c}
rc=$?
if [[ $rc == 0 ]]; then
echo "Continuing with current version"
elif [[ $rc == 1 ]]; then
exit 1
fi
}
+8 -3
View File
@@ -1,9 +1,9 @@
#!/bin/bash
################################################################################
################################################################################
####################### AmRRON Tri-Mode Setup v0.6.3 #########################
####################### AmRRON Tri-Mode Setup v0.7 #########################
####################### Created by TB-14 #########################
####################### 26 Feb 2024 #########################
####################### 07 Mar 2024 #########################
################################################################################
################################################################################
@@ -44,7 +44,12 @@ date, click continue." | yad \
--button="Continue:0" \
--title "Ensure your scripts are up to date." \
${r} ${c}
rc=$?
if [[ $rc == 0 ]]; then
echo "Continuing with current version"
elif [[ $rc == 1 ]]; then
exit 1
fi
}
function determine_os() {
+6 -1
View File
@@ -94,7 +94,12 @@ date, click continue." | yad \
--button="Continue:0" \
--title "Ensure your scripts are up to date." \
${r} ${c}
rc=$?
if [[ $rc == 0 ]]; then
echo "Continuing with current version"
elif [[ $rc == 1 ]]; then
exit 1
fi
}
# Create a error function to make life easier later on