[neon/infrastructure/pangea-gemstash] /: proper date-timestamp and make sure to copy the config.yaml

Carlos De Maine null at kde.org
Tue May 30 04:09:56 BST 2023


Git commit f6a0ed30f24e76b5ead9b7e6aabb1c13741cc471 by Carlos De Maine.
Committed on 30/05/2023 at 03:09.
Pushed by carlosdem into branch 'master'.

proper date-timestamp and make sure to copy the config.yaml

M  +2    -1    start.sh

https://invent.kde.org/neon/infrastructure/pangea-gemstash/-/commit/f6a0ed30f24e76b5ead9b7e6aabb1c13741cc471

diff --git a/start.sh b/start.sh
index 4162af3..510613b 100755
--- a/start.sh
+++ b/start.sh
@@ -20,7 +20,7 @@
 
 # Define a timestamp function
 timestamp() {
-  date +"%T" # current time
+  date +"%F_%T" # current time
 }
 
 # set up stack for making our own gems
@@ -45,6 +45,7 @@ if [ -d "/home/gemstash/.gemstash/" ]
 then
     echo "~/.gemstash/ exists"
     rm -vf /home/gemstash/.gemstash/config.yaml
+    cp -vf config.yaml /home/gemstash/.gemstash/config.yaml
     mv -v /home/gemstash/.gemstash/gemstash.log /home/gemstash/.gemstash/gemstash.log.$(timestamp)
 else
     echo "~/.gemstash/ doesn't exist, lets start from the beginning"


More information about the Neon-commits mailing list