You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
818 B
22 lines
818 B
#!/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")")"
|
|
|
|
# install packages
|
|
if [ -f $SCRIPT_DIR/$PACKAGE_VARIANT.list ]; then
|
|
#sudo DEBIAN_FRONTEND=$DEBIAN_FRONTEND_TYPE \
|
|
$APT_CMD update &&
|
|
#sudo DEBIAN_FRONTEND=$DEBIAN_FRONTEND_TYPE \
|
|
$APT_CMD install $APT_OPTIONS $APT_OPTIONS2 \
|
|
$(grep -vE "^\s*#" $SCRIPT_DIR/$PACKAGE_VARIANT.list | tr "\n" " ") >>$OUTPUT 2>&1
|
|
fi
|
|
|
|
if [ $PACKAGE_VARIANT = "standard" ]; then
|
|
wget -c https://github.com/VSCodium/vscodium/releases/download/1.57.1/codium_1.57.1-1623975230_amd64.deb &&
|
|
$APT_CMD install $APT_OPTIONS ./codium_1.57.1-1623975230_amd64.deb &&
|
|
rm -f ./codium_1.57.1-1623975230_amd64.deb
|
|
fi
|
|
|