Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit5cc370ceb60b8571de636b30e731e2aad97b3958 (patch)
Author
 Syndamia <kamen@syndamia.com>
2024-04-14 10:25:44 +0300
Committer
 Syndamia <kamen@syndamia.com>
2024-04-14 10:25:44 +0300
Files70c599fc737cb65ae451347ceac4951fd7c362ea
csg-5cc370ceb60b8571de636b30e731e2aad97b3958.tar
csg-5cc370ceb60b8571de636b30e731e2aad97b3958.tar.gz
csg-5cc370ceb60b8571de636b30e731e2aad97b3958.zip
Parent956b9d38e5b5fbc187fc3b45efa1d55043f3fd6d (diff)
[p3] Fixed logic for disabling timestamp.txt
1 files changed, 2 insertions, 1 deletions
-rwxr-xr-xcsg3
diff --git a/csg b/csg
index a548c9e..5c96dff 100755
--- a/csg
+++ b/csg
@@ -26,7 +26,7 @@ Arguments:
Variables (you can predefine):
CSG_TIMESTAMP_FILE File path for git-based timestamps (when git exists)
Default: "./timestamps.txt"
- Disable: ""
+ Disable: "none"
CSG_TMP_DIR Directory to put temporary files
Default: "/tmp"
CSG_AWK awk executable and flags
@@ -73,6 +73,7 @@ AWKSCRIPTS="$5"
### "Global" variables
: ${CSG_TIMESTAMP_FILE:="$(realpath ./timestamps.txt)"}
+[ "$CSG_TIMESTAMP_FILE" = 'none' ] && CSG_TIMESTAMP_FILE=""
: ${CSG_TMP_DIR:='/tmp'}
[ ! -d "$CSG_TMP_DIR" ] && echo "[Error] $CSG_TMP_DIR (\$CSG_TMP_DIR) doesn't exist!" \