diff options
author | Be <be@mixxx.org> | 2020-11-22 21:01:59 -0600 |
---|---|---|
committer | Be <be@mixxx.org> | 2020-11-22 21:01:59 -0600 |
commit | 5567584109076d8e1b53d384f56e8e09a8f707fb (patch) | |
tree | 8e49b65679e670f37d4381b7ccf1d6ae86070f28 /tools | |
parent | 790ef84f0f5dc3368189a6bccff19fc813b77ae6 (diff) |
deploy.sh: fix getting file extension
The old way got messed up when the Git branch name has a . in it
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/deploy.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/deploy.sh b/tools/deploy.sh index 8c17e594c9..457e6b6edd 100755 --- a/tools/deploy.sh +++ b/tools/deploy.sh @@ -27,7 +27,7 @@ shopt -s extglob rsync -e "${SSH}" --rsync-path="mkdir -p ${TMP_PATH} && rsync" -r --delete-after ${FILE_TO_DEPLOY} ${USER}@${HOSTNAME}:${TMP_PATH} FILE_NAME=$(basename $FILE_TO_DEPLOY) -FILE_EXTENSION="${FILE_NAME#*.}" +FILE_EXTENSION="${FILE_NAME##*.}" SYMLINK_NAME="Mixxx-${GIT_BRANCH}-latest.${FILE_EXTENSION}" # Move from the temporary path to the final destination. |