Add debug

This commit is contained in:
2023-01-30 12:31:01 -05:00
parent a7935e6888
commit faccb7c619

View File

@@ -8,6 +8,9 @@
# #
# See README.md and ./profiles # See README.md and ./profiles
# #
# This will install a lot of system dependencies by default, so I recommend to
# run it in `toolbox`
#
# Set default release # Set default release
: "${RELEASE:="22.03.3"}" : "${RELEASE:="22.03.3"}"
@@ -29,7 +32,7 @@ printHelp() {
--source --source
Build image from source, not from Image Builder Build image from source, not from Image Builder
--ssh-upgrade HOST --ssh-upgrade HOST
Example: root@192.168.1.1 Examples: root@192.168.1.1, root@router.lan
--ssh-backup SSH_PATH --ssh-backup SSH_PATH
Enabled by default for --ssh-upgrade Enabled by default for --ssh-upgrade
--flash,-f DEVICE --flash,-f DEVICE
@@ -297,6 +300,10 @@ installDependencies() {
"zlib" "zlib"
) )
;; ;;
*)
debug "Skipping dependency install, your OS is unsupported"
return 1
;;
esac esac
else else
# For Imagebuilder # For Imagebuilder
@@ -335,6 +342,10 @@ installDependencies() {
"axel" "axel"
) )
;; ;;
*)
debug "Skipping dependency install, your OS is unsupported"
return 1
;;
esac esac
fi fi