From 89d69cddc1f05b442cfcc8bae358e41b37344bfa Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Sat, 12 Oct 2024 12:56:08 +0200 Subject: [PATCH] fix --- deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index 12590a0..0bf8d85 100644 --- a/deploy.sh +++ b/deploy.sh @@ -1,8 +1,8 @@ #!/bin/bash cp geofeed.csv dist -find dist -type f -exec sed -i 's/var_lastmod/$(date)/g' {} + -find dist -type f -exec sed -i 's/var_commithash/$(git rev-parse --short HEAD)/g' {} + +find dist -type f -exec sed -i "s/var_lastmod/$(date)/g" {} + +find dist -type f -exec sed -i "s/var_commithash/$(git rev-parse --short HEAD)/g" {} + ncftpput -R -u $FTP_USER -p $FTP_PASSWORD $FTP_SERVER . dist/*