parameterize
This commit is contained in:
@@ -16,6 +16,19 @@ for part in "${parts[@]}"; do
|
||||
fi
|
||||
done
|
||||
|
||||
# Check if any parameters were passed
|
||||
if [ $# -gt 0 ]; then
|
||||
# Put parameters into an array (list)
|
||||
params=("$@")
|
||||
|
||||
# Check if a string is part of the list
|
||||
if [[ " ${params[@]} " =~ " $1 " ]]; then
|
||||
include=true # don't change anything
|
||||
else
|
||||
include=false
|
||||
fi
|
||||
fi
|
||||
|
||||
if $include; then
|
||||
result=$($BASEPATH/sync-status.sh "${part%.yml}")
|
||||
if [ "$1" = "${part%.yml}" ]; then
|
||||
|
||||
Reference in New Issue
Block a user