This commit is contained in:
Sebastian
2024-09-24 07:14:55 +02:00
parent 57fce1908b
commit e7d371cd2f

View File

@@ -22,7 +22,7 @@ for part in "${parts[@]}"; do
params=("$@") params=("$@")
# Check if a string is part of the list # Check if a string is part of the list
if [[ " ${params[@]} " =~ " $1 " ]]; then if [[ " ${params[@]} " =~ " ${part%.yml} " ]]; then
include=$include # don't change anything include=$include # don't change anything
else else
include=false include=false
@@ -31,12 +31,12 @@ for part in "${parts[@]}"; do
if $include; then if $include; then
result=$($BASEPATH/sync-status.sh "${part%.yml}") result=$($BASEPATH/sync-status.sh "${part%.yml}")
if [ "$1" = "${part%.yml}" ]; then #if [ "$1" = "${part%.yml}" ]; then
echo "${result}" # echo "${result}"
exit 0 # exit 0
else #else
echo "${part%.yml}: $result" echo "${part%.yml}: $result"
fi #fi
fi fi
done done