mirror of
https://gitlab.com/amrron/setup-scripts.git
synced 2026-10-17 01:54:00 -04:00
fixed exit codes
This commit is contained in:
+6
-1
@@ -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() {
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user