websoft9/scripts/containers_version.sh

14 lines
402 B
Bash
Raw Normal View History

2022-07-15 14:55:40 +08:00
#!/bin/bash
export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
2022-07-15 15:57:02 +08:00
# get applist
2022-07-15 16:02:54 +08:00
if [ -d StackHub ] ; then
echo "StackHub is exists"
else
git clone --depth=1 https://github.com/Websoft9/StackHub.git
fi
2022-07-15 15:57:02 +08:00
appnames=$(ls StackHub/apps/roles |grep -v Template |grep -v README.md |grep -v role)
for appname in $appnames; do
echo $character
done