From 70420bd03549a89892f06dbf3634de6d38399d71 Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Sat, 10 Nov 2018 09:58:53 +0200 Subject: [PATCH] write flip only at success --- code/templates/flip | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/templates/flip b/code/templates/flip index b1614e1..97cabfd 100755 --- a/code/templates/flip +++ b/code/templates/flip @@ -48,7 +48,7 @@ _update_client() { [[ -n "$FLEES_TOKEN" ]] && [[ -n "$FLEES_SHARE" ]] && { sharetoken="/$FLEES_SHARE/$FLEES_TOKEN" } - curl -o "$0" "$FLEES_ROOTURL/script/flip$sharetoken" + curl -fLo "$0" "$FLEES_ROOTURL/script/flip$sharetoken" err=$? chmod +x "$0" exit $err