diff --git a/scripts/make-sfx.sh b/scripts/make-sfx.sh index eeda132c..51725d07 100755 --- a/scripts/make-sfx.sh +++ b/scripts/make-sfx.sh @@ -115,7 +115,7 @@ git describe --tags >/dev/null 2>/dev/null && { exit 1 } - dt="$(git log -1 --format=%cd --date=format:'%Y,%m,%d' | sed 's/,0?/, /g')" + dt="$(git log -1 --format=%cd --date=format:'%Y,%m,%d' | sed -E 's/,0?/, /g')" printf 'git %3s: \033[36m%s\033[0m\n' ver "$ver" dt "$dt" sed -ri ' s/^(VERSION =)(.*)/#\1\2\n\1 ('"$t_ver"')/; diff --git a/scripts/make-tgz-release.sh b/scripts/make-tgz-release.sh index 85ff7483..f3c34a18 100755 --- a/scripts/make-tgz-release.sh +++ b/scripts/make-tgz-release.sh @@ -16,15 +16,15 @@ which md5sum 2>/dev/null >/dev/null && ver="$1" -[[ "x$ver" == x ]] && +[ "x$ver" = x ] && { echo "need argument 1: version" echo exit 1 } -[[ -e copyparty/__main__.py ]] || cd .. -[[ -e copyparty/__main__.py ]] || +[ -e copyparty/__main__.py ] || cd .. +[ -e copyparty/__main__.py ] || { echo "run me from within the project root folder" echo @@ -35,8 +35,8 @@ mkdir -p dist zip_path="$(pwd)/dist/copyparty-$ver.zip" tgz_path="$(pwd)/dist/copyparty-$ver.tar.gz" -[[ -e "$zip_path" ]] || -[[ -e "$tgz_path" ]] && +[ -e "$zip_path" ] || +[ -e "$tgz_path" ] && { echo "found existing archives for this version" echo " $zip_path"