pub / stagit-scripts

Building src.jayvii.de with stagit
git clone https://src.jayvii.de/pub/stagit-scripts.git
Home | Log | Files | Exports | Refs | README | RSS

commit 6eb457054dbb27b9955a0e6e5face324551d4c7e
parent c2ccedb3104e1fc9ff1d32509fab49b12c9aeb07
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Mon, 17 Jun 2024 20:49:17 +0200

fix: syntax fixes

Diffstat:
Mbin/git_deploy.sh | 6+++---
Mbin/git_post_push.sh | 6+++---
2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/bin/git_deploy.sh b/bin/git_deploy.sh @@ -31,11 +31,11 @@ for REF in ${4}; do if [ ! -z $TAG ]; then # fetch the archive from previous export via git_export_tarball.sh - if [ -f "${1}/${2}${3}/exports/${TAG}.tar.gz" ]; then + if [ -f "${1}/${2}/${3}/exports/${TAG}.tar.gz" ]; then # extract archive to temporary directory TMPDIR=`mktemp --directory` - tar xfvz "${1}/${2}${3}/exports/${TAG}.tar.gz" \ + tar xfvz "${1}/${2}/${3}/exports/${TAG}.tar.gz" \ --directory "${TMPDIR}/" > /dev/null MAKE_STATUS=0 @@ -52,7 +52,7 @@ for REF in ${4}; do MAKE_STATUS=$? # User output - if [ $MAKE_STATUS -gt 0 ]; then + if [ $MAKE_STATUS = 0 ]; then echo "Version ${TAG} has been deployed" fi diff --git a/bin/git_post_push.sh b/bin/git_post_push.sh @@ -14,14 +14,14 @@ git_post_push.sh \\ \"/var/www/git.example.git\" \\ \"pub\" \\ \"stagit-jayvii.de\" \\ - \$@ # optional paramaters given by post-push hook + \"\$@\" # optional paramaters given by post-push hook " exit 1; fi ~/bin/git_update_repo.sh "${1}" "${2}" "${3}" -~/bin/git_export_tarball.sh "${1}" "${2}" "${3}" "$@" -~/bin/git_deploy.sh "${1}" "${2}" "${3}" "$@" +~/bin/git_export_tarball.sh "${1}" "${2}" "${3}" "${4}" +~/bin/git_deploy.sh "${1}" "${2}" "${3}" "${4}" ~/bin/git_update_repo_html.sh "${1}" "${2}" "${3}" ~/bin/git_update_index_html.sh "${1}" "${2}"