Okay, this should work since [[ is bash-specific

This commit is contained in:
NovaFox161
2021-07-19 12:41:44 -05:00
parent ac2cba224a
commit e018fd5bd3
3 changed files with 18 additions and 9 deletions

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"