2023-10-14 22:38:03 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-10-14 22:38:07 +02:00
|
|
|
SUDO=${SUDO:-sudo}
|
2023-10-14 22:38:06 +02:00
|
|
|
|
2023-10-14 22:38:07 +02:00
|
|
|
PM=${PM:-pacman}
|
|
|
|
PM_INSTALL=${PM_INSTALL:--S}
|
|
|
|
PM_NOCONFIRM=${PM_NOCONFIRM:---noconfirm}
|
2023-10-14 22:38:03 +02:00
|
|
|
|
2023-10-14 22:38:07 +02:00
|
|
|
set -e
|
|
|
|
|
2023-10-14 22:38:03 +02:00
|
|
|
main() {
|
2023-10-14 22:38:07 +02:00
|
|
|
if [ ! -z "$@" ]; then
|
|
|
|
. ./scripts/$@
|
|
|
|
exit 0
|
|
|
|
fi
|
2023-10-14 22:38:07 +02:00
|
|
|
for script in ./scripts/* ; do
|
|
|
|
echo "# exec $script"
|
|
|
|
. $script
|
|
|
|
done
|
2023-10-14 22:38:03 +02:00
|
|
|
}
|
|
|
|
|
2023-10-14 22:38:07 +02:00
|
|
|
main "$@"
|
|
|
|
|
2023-10-14 22:38:07 +02:00
|
|
|
echo "# OK"
|