diff --git a/copyparty/__version__.py b/copyparty/__version__.py index 641c70e5..c1d490f0 100644 --- a/copyparty/__version__.py +++ b/copyparty/__version__.py @@ -1,7 +1,7 @@ # coding: utf-8 VERSION = (0, 2, 3) -BUILD_DT = (2020, 1, 19) +BUILD_DT = (2020, 4, 27) S_VERSION = ".".join(map(str, VERSION)) S_BUILD_DT = "{0:04d}-{1:02d}-{2:02d}".format(*BUILD_DT) diff --git a/scripts/make-unix-sfx.sh b/scripts/make-unix-sfx.sh old mode 100644 new mode 100755 index 7926fea2..545af5cc --- a/scripts/make-unix-sfx.sh +++ b/scripts/make-unix-sfx.sh @@ -62,6 +62,7 @@ dir="$( awk '/./ {print; exit}' )/pe-copyparty" +printf '%s\n' "$pybin" | grep -qE ... && [ -e "$pybin" ] && py="$pybin" || py="$(command -v python3)" || py="$(command -v python)" || py="$(command -v python2)" || { @@ -84,7 +85,9 @@ py="$(command -v python2)" || { now=$(date -u +%s) for d in "$dir".*; do - ts=$(stat -c%Y -- "$d") + ts=$(stat -c%Y -- "$d" 2>/dev/null) || + ts=$(stat -f %m%n -- "$d" 2>/dev/null) + [ $((now-ts)) -gt 300 ] && rm -rf "$d" done