Created a uniform interface accross all session scripts

This commit is contained in:
Sasha Koshka
2024-02-01 00:46:39 -05:00
parent 794f7216cd
commit 463be06955
5 changed files with 56 additions and 8 deletions

View File

@@ -1,10 +1,19 @@
#!/bin/sh
name=`basename "$0"`
usage() {
echo "Usage: $name" >&2
exit 2
}
[ "$#" -gt 0 ] && usage
if [ -z "$XMD_STARTUPDIR" ]; then
echo "!!! \$XMD_STARTUPDIR not set"
echo "$name \$XMD_STARTUPDIR not set" >&2
exit 1
fi
for item in $XMD_STARTUPDIR/*; do
for item in "$XMD_STARTUPDIR"/*; do
if [ -x "$item" ]; then
"$item" &
fi