18 lines
323 B
Text
18 lines
323 B
Text
|
#!/bin/bash
|
||
|
|
||
|
set -eux
|
||
|
set -o pipefail
|
||
|
|
||
|
PACKAGES=
|
||
|
|
||
|
for PACKAGEFILE in $(find $(dirname $0) -maxdepth 1 -name "package-installs-*" ); do
|
||
|
while read pkg; do
|
||
|
if [ ${pkg:0:1} = "-" ]; then
|
||
|
pkg=${pkg:1}
|
||
|
fi
|
||
|
PACKAGES="$PACKAGES $pkg"
|
||
|
done < $PACKAGEFILE
|
||
|
done
|
||
|
|
||
|
install-packages $PACKAGES
|