diff options
| Commit | 5cc370ceb60b8571de636b30e731e2aad97b3958 (patch) | |
|---|---|---|
| Author | 2024-04-14 10:25:44 +0300 | |
| Committer | 2024-04-14 10:25:44 +0300 | |
| Files | 70c599fc737cb65ae451347ceac4951fd7c362ea | |
| csg-5cc370ceb60b8571de636b30e731e2aad97b3958.tar csg-5cc370ceb60b8571de636b30e731e2aad97b3958.tar.gz csg-5cc370ceb60b8571de636b30e731e2aad97b3958.zip | ||
| Parent | 956b9d38e5b5fbc187fc3b45efa1d55043f3fd6d (diff) | |
[p3] Fixed logic for disabling timestamp.txt
1 files changed, 2 insertions, 1 deletions
| -rwxr-xr-x | csg | 3 |
@@ -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!" \ |
