diff options
author | Jonathan Bauer | 2013-07-09 18:15:22 +0200 |
---|---|---|
committer | Jonathan Bauer | 2013-07-09 18:15:22 +0200 |
commit | 96369fe3fe84dcbf3958996e50ad360512cb2c1f (patch) | |
tree | a7940b1cb605528ad4eb85766b8098c77e3ac0a8 /mltk | |
parent | [fileutil] fix typo (diff) | |
download | tm-scripts-96369fe3fe84dcbf3958996e50ad360512cb2c1f.tar.gz tm-scripts-96369fe3fe84dcbf3958996e50ad360512cb2c1f.tar.xz tm-scripts-96369fe3fe84dcbf3958996e50ad360512cb2c1f.zip |
[mltk] add '-a' option for non-interactive mode
Diffstat (limited to 'mltk')
-rwxr-xr-x | mltk | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -27,15 +27,10 @@ for i in $DEVTOOLS; do which "$i" 2>/dev/null 1>&2 || { echo "Essential development tool $i not found - exiting."; exit 1; } done -# AUTO_UPDATE_KERNEL flag to rebuild kernel if a new version is detected -AUTO_UPDATE_KERNEL=1 - # Make apt-get install non-interactive when it comes to postinstall questions # ie. kdm asking which dm you want to set as default export DEBIAN_FRONTEND=noninteractive - - qnd_exit() { unset_quiet kill "$MLTK_PID" @@ -223,6 +218,13 @@ read_params() { fi continue ;; + -a) + if [ "$MODE" == "REMOTE" ]; then + [ "x" != "x$1" ] && perror "'-a' accepts no parameters. Given: $1" + REMOTE_AUTOMATIC_BUILD="1" + fi + continue + ;; *) pwarning "Unknown flag to target: $PARAM" print_usage @@ -271,6 +273,7 @@ REMOTE_CLEAN="0" REMOTE_BUILD="0" REMOTE_LIST_CLEAN="" REMOTE_LIST_BUILD="" +REMOTE_AUTOMATIC_BUILD=0 initial_checks read_params $@ |