Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commita194e60853f0309e6892d13cf24e81312306d200 (patch)
Author
 Syndamia <kamen@syndamia.com>
2024-04-14 08:49:54 +0300
Committer
 Syndamia <kamen@syndamia.com>
2024-04-14 08:49:54 +0300
Filesc844e84029bc181b8eb9b2c039a757fa1ac3520e
csg-a194e60853f0309e6892d13cf24e81312306d200.tar
csg-a194e60853f0309e6892d13cf24e81312306d200.tar.gz
csg-a194e60853f0309e6892d13cf24e81312306d200.zip
Parent4cdb05b97f24f66f026abc7846b3aff1fc53f71b (diff)
[s0] Added simple git repository check
1 files changed, 1 insertions, 1 deletions
-rwxr-xr-xcsg2
diff --git a/csg b/csg
index 7e33c18..71aa5b1 100755
--- a/csg
+++ b/csg
@@ -128,7 +128,7 @@ endTimer() {
### Stage 0
### Create timestamps.txt file, if necessary
-if [ -n "$CSG_TIMESTAMP_FILE" ] && isCommand 'git'
+if [ -n "$CSG_TIMESTAMP_FILE" ] && isCommand 'git' && [ -d '.git' ]
then
timestamps_writeDates() {
while read -r file