Small template extension for APT option -y

This commit is contained in:
2021-03-21 17:22:57 +01:00
parent b88a69e68b
commit bb7d187d64

View File

@@ -808,6 +808,7 @@ toolName=mytool
# Get script working directory # Get script working directory
# (when called from a different directory) # (when called from a different directory)
WDIR="\$(cd "\$(dirname "\${BASH_SOURCE[0]}")" >>/dev/null 2>&1 && pwd)" WDIR="\$(cd "\$(dirname "\${BASH_SOURCE[0]}")" >>/dev/null 2>&1 && pwd)"
APTOPT=
CONFIG=0 CONFIG=0
SCRIPT_NAME=\$(basename -- \$0) SCRIPT_NAME=\$(basename -- \$0)
SCRIPT_NAME=\${SCRIPT_NAME%%.*} SCRIPT_NAME=\${SCRIPT_NAME%%.*}
@@ -828,6 +829,8 @@ step_config() {
# # End if no configuration file exists # # End if no configuration file exists
# [ \$DRY -eq 0 ] && return -1 # [ \$DRY -eq 0 ] && return -1
#fi #fi
#[ \$QUIET -ne 0 ] && APTOPT="-y"
return 0
} }
step_1_info() { echo "My custom step"; } step_1_info() { echo "My custom step"; }