#!/bin/bash cp geofeed.csv dist find dist -type f -exec sed -i "s/var_lastmodlong/$(date)/g" {} + find dist -type f -exec sed -i "s/var_lastmodshort/$(date +%d.%m.%Y)/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/* curl -H "AccessKey: $ACCESS_KEY" "https://api.bunny.net/purge?url=https%3A%2F%2Fdn42.m724.eu&async=false"