mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-25 15:41:02 -05:00
commit
c50c0e6f34
1 changed files with 2 additions and 7 deletions
|
@ -112,12 +112,7 @@ ValidateInput()
|
||||||
###################################
|
###################################
|
||||||
# Remove non alpha-numberic chars #
|
# Remove non alpha-numberic chars #
|
||||||
###################################
|
###################################
|
||||||
BRANCH_NAME=$(echo "$BRANCH_NAME" | tr -cd '[:alnum:]')
|
IMAGE_VERSION=$(echo "$IMAGE_VERSION" | tr -cd '[:alnum:]')
|
||||||
|
|
||||||
############################################
|
|
||||||
# Set the IMAGE_VERSION to the BRANCH_NAME #
|
|
||||||
############################################
|
|
||||||
IMAGE_VERSION="$BRANCH_NAME"
|
|
||||||
else
|
else
|
||||||
#############################################
|
#############################################
|
||||||
# Image is 'latest' and we will not destroy #
|
# Image is 'latest' and we will not destroy #
|
||||||
|
@ -125,7 +120,7 @@ ValidateInput()
|
||||||
echo "Image Tag is set to:[latest]..."
|
echo "Image Tag is set to:[latest]..."
|
||||||
echo "We will never destroy latest..."
|
echo "We will never destroy latest..."
|
||||||
echo "Bye!"
|
echo "Bye!"
|
||||||
exit 0
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
Loading…
Reference in a new issue