Skip to content

Commit

Permalink
modify update script
Browse files Browse the repository at this point in the history
Signed-off-by: a3hadi <[email protected]>
  • Loading branch information
ayildirim21 committed Mar 12, 2024
1 parent 10bb0b0 commit 288fd8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions update_examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ if (( usingBuildPush + usingBuildPushExample + usingVersion + usingHelp > 1 ));
exit 1
fi

if (( usingTag + usingVersion > 1 )); then
echo "Cannot use -t with -u" >&2
if (( usingTag + usingVersion + usingHelp > 1 )); then
echo "Can only use -t with -bp or -bpe" >&2
show_help
exit 1
fi
Expand All @@ -122,7 +122,7 @@ if [ -n "$directoryPath" ]; then
echo "Dockerfile path to use: $directoryPath"
fi

if [ -n "$tag" ] && (( usingTag )); then
if [ -n "$tag" ] && (( ! usingVersion )); then
echo "Using tag: $tag"
fi

Expand Down

0 comments on commit 288fd8c

Please sign in to comment.