modernize multiple seqs and fix deprecated use of endCheckEmpty
This commit is contained in:
@@ -15,7 +15,7 @@ seq_config() {
|
||||
step_20_info() {
|
||||
shift
|
||||
echo -n "Create a backup"
|
||||
if [ $sq_config -ne 0 ] ; then
|
||||
if (( sq_config )) ; then
|
||||
echo " at $FR_BACKUP"
|
||||
else
|
||||
echo
|
||||
@@ -26,7 +26,7 @@ step_20_alias() { echo "backup"; }
|
||||
step_20() {
|
||||
shift
|
||||
local tempRoot=
|
||||
if [ $sq_config -eq 0 ] ; then
|
||||
if (( ! sq_config )) ; then
|
||||
error -e "No configuration file found"
|
||||
return 1
|
||||
fi
|
||||
@@ -61,12 +61,13 @@ step_22_info() {
|
||||
if ! contextHelp ; then
|
||||
echo ": $(curl --silent "$latestUrl" | grep -Po '"tag_name": "\K.*?(?=")')"
|
||||
else
|
||||
echo " [CUSTOM VERSION]"
|
||||
echo
|
||||
fi
|
||||
else
|
||||
echo "Get version $1 from github"
|
||||
fi
|
||||
}
|
||||
step_22_options() { echo "[CUSTOM VERSION]"; }
|
||||
step_22_alias() { echo "upgrade"; }
|
||||
step_22() {
|
||||
shift # don't need step number
|
||||
|
Reference in New Issue
Block a user