Skip to content

Commit

Permalink
Okay, this should work since [[ is bash-specific
Browse files Browse the repository at this point in the history
  • Loading branch information
NovaFox161 committed Jul 19, 2021
1 parent ac2cba2 commit e018fd5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
9 changes: 6 additions & 3 deletions client/build-image.sh
@@ -1,10 +1,13 @@
#!/bin/bash

version=$1
echo "Version: $version"

if [[ $version == *"SNAPSHOT"* ]]; then
version="latest"
fi
case "$version" in
*SNAPSHOT*)
version="latest"
;;
esac

echo "Using image tag: $version"

Expand Down
9 changes: 6 additions & 3 deletions server/build-image.sh
@@ -1,10 +1,13 @@
#!/bin/bash

version=$1
echo "Version: $version"

if [[ $version == *"SNAPSHOT"* ]]; then
version="latest"
fi
case "$version" in
*SNAPSHOT*)
version="latest"
;;
esac

echo "Using image tag: $version"

Expand Down
9 changes: 6 additions & 3 deletions web/build-image.sh
@@ -1,10 +1,13 @@
#!/bin/bash

version=$1
echo "Version: $version"

if [[ $version == *"SNAPSHOT"* ]]; then
version="latest"
fi
case "$version" in
*SNAPSHOT*)
version="latest"
;;
esac

echo "Using image tag: $version"

Expand Down

0 comments on commit e018fd5

Please sign in to comment.