2023-02-19 21:02:08 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
PACKAGE_LIST=${PACKAGE_LIST:-./package.list}
|
|
|
|
GRAPHICAL_PACKAGE_LIST=${GRAPHICAL_PACKAGE_LIST:-./gpackage.list}
|
|
|
|
|
|
|
|
_APPLICATIONS=""
|
|
|
|
while read -r pkg; do
|
|
|
|
[ -z "$pkg" ] && continue
|
|
|
|
[ "$(echo "$pkg" | cut -c1)" = "#" ] && continue
|
|
|
|
_APPLICATIONS="$_APPLICATIONS $pkg"
|
|
|
|
done < "$PACKAGE_LIST"
|
|
|
|
|
2023-03-07 12:13:21 +01:00
|
|
|
if [ "${NO_GRAPHICS:-no}" = "no" ]; then
|
2023-02-19 21:02:08 +01:00
|
|
|
if [ -f "$GRAPHICAL_PACKAGE_LIST" ]; then
|
|
|
|
while read -r pkg; do
|
|
|
|
[ -z "$pkg" ] && continue
|
|
|
|
[ "$(echo "$pkg" | cut -c1)" = "#" ] && continue
|
|
|
|
_APPLICATIONS="$_APPLICATIONS $pkg"
|
|
|
|
done < "$GRAPHICAL_PACKAGE_LIST"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
$SUDO $PM $PM_INSTALL $PM_NOCONFIRM $_APPLICATIONS
|