mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2024-11-22 08:46:15 +00:00
Fixed typo in deploy.sh
This commit is contained in:
parent
9f9d9fd183
commit
65ae4f4a86
@ -22,7 +22,6 @@ source "deploy.secret.sh"
|
|||||||
[ -z "$TOKEN" ] && error "TOKEN is not set or empty."
|
[ -z "$TOKEN" ] && error "TOKEN is not set or empty."
|
||||||
|
|
||||||
CURL_OPTS="-u fabianonline:$TOKEN"
|
CURL_OPTS="-u fabianonline:$TOKEN"
|
||||||
set -x
|
|
||||||
|
|
||||||
git diff-files --quiet --ignore-submodules -- || error "You have changes in your working tree."
|
git diff-files --quiet --ignore-submodules -- || error "You have changes in your working tree."
|
||||||
|
|
||||||
@ -32,8 +31,6 @@ branch_name=$(git symbolic-ref HEAD 2>/dev/null)
|
|||||||
branch_name=${branch_name##refs/heads/}
|
branch_name=${branch_name##refs/heads/}
|
||||||
[ "$branch_name" == "master" ] || error "Current branch is $branch_name, not master."
|
[ "$branch_name" == "master" ] || error "Current branch is $branch_name, not master."
|
||||||
|
|
||||||
exit 2
|
|
||||||
|
|
||||||
echo "Updating the Dockerfile..."
|
echo "Updating the Dockerfile..."
|
||||||
sed -i "s/ENV JAR_VERSION .\+/ENV JAR_VERSION $VERSION/g" Dockerfile || error "Couldn't modify Dockerfile."
|
sed -i "s/ENV JAR_VERSION .\+/ENV JAR_VERSION $VERSION/g" Dockerfile || error "Couldn't modify Dockerfile."
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user