We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ba6c3f commit 8fededcCopy full SHA for 8fededc
bin/scw-functions.sh
@@ -57,7 +57,8 @@ scw_get_repository_name() {
57
fi
58
}
59
scw_satis_verify_repository_exists() {
60
- if [ "`cat /etc/satis/satis.json | jq '.repositories[] | select(.url == "'"$1"'") | .url' | wc -c`" == "0" ]; then
+ REPOSITORY_NAME=`scw_get_repository_name "$1"`
61
+ if [ "`cat /etc/satis/satis.json | jq '.repositories[] | select(.url | contains("'"$REPOSITORY_NAME"'")) | .url' | wc -c`" == "0" ]; then
62
scw_log_error "Repository $1 does not exist in this Satis repository"
63
exit 0
64
0 commit comments