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/*