write flip only at success

This commit is contained in:
2018-11-10 09:58:53 +02:00
parent b8251ba1e9
commit 70420bd035

View File

@@ -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