dataset/seed/applicationservice/2022.03.08/base-fedora/packer/os/bin/risotto-run-parts
2022-03-08 19:42:28 +01:00

24 lines
362 B
Bash

#!/usr/bin/bash
# run-parts - concept taken from Debian
set +xe
if [ $# -lt 1 ]; then
echo "Usage: risotto-run-parts <dir>"
exit 1
fi
if [ ! -d $1 ]; then
echo "Not a directory: $1"
exit 1
fi
# Ignore *~ and *, scripts
for i in $(LC_ALL=C; echo ${1%/}/*[^~,]) ; do
[ -d $i ] && continue
[ ! -x $i ] && continue
echo "execute $i"
$i 2>&1
done
exit 0