1 changed files with 14 additions and 0 deletions
@ -1 +1,15 @@ |
|||||
|
#!/bin/bash |
||||
|
|
||||
|
set -e # exit on error |
||||
|
set -o pipefail # exit on pipeline error |
||||
|
set -u # treat unset variable as error |
||||
|
|
||||
|
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" |
||||
|
|
||||
|
$APT_CMD update >>$OUTPUT 2>&1 |
||||
|
|
||||
|
# install packages |
||||
|
if [ -f $SCRIPT_DIR/$PACKAGE_VARIANT.list ]; then |
||||
|
$APT_CMD install $APT_OPTIONS \ |
||||
|
$(grep -vE "^\s*#" $SCRIPT_DIR/$PACKAGE_VARIANT.list | tr "\n" " ") >>$OUTPUT 2>&1 |
||||
|
fi |
||||
|
Loading…
Reference in new issue