Skip to content

Commit

Permalink
fix typo in if
Browse files Browse the repository at this point in the history
  • Loading branch information
aleskxyz authored Dec 3, 2023
1 parent cdc4f72 commit 1dca0b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reality-ezpz.sh
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ function backup {
local exit_code
backup_name=reality-ezpz-backup-$(date +%Y-%m-%d_%H-%M-%S).tar.gz
tar -czf /tmp/${backup_name} -C /opt/reality-ezpz/ ./
if ! backup_file_url=$(curl -fsS --upload-file /tmp/${backup_name} https://free.keep.sh)
if ! backup_file_url=$(curl -fsS --upload-file /tmp/${backup_name} https://free.keep.sh); then
rm -f /tmp/${backup_name}
echo "Error in uploading backup file"
exit 1
Expand Down

0 comments on commit 1dca0b3

Please sign in to comment.