refactor: deploy script use bash strict mode

This commit is contained in:
septs 2024-06-05 14:12:46 +08:00
parent 7498098431
commit 874fef5faf
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

4
deploy
View File

@ -1,2 +1,4 @@
#!/bin/sh
hugo && rsync -e "ssh -p 48" -avz --delete public/ euicc-manual@ftp.osmocom.org:~/web-files/
set -xeuo pipefail
hugo --cleanDestinationDir --minify
rsync -e "ssh -p 48" -avz --delete public/ euicc-manual@ftp.osmocom.org:~/web-files/