fix
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user