From 42739ab8ca89b9da0bfd9488a7f8b1c7dcb1f418 Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 8 Apr 2022 13:58:51 +0200 Subject: [PATCH] if missing --- crowdbunker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crowdbunker.sh b/crowdbunker.sh index 762b45b..b6574e3 100755 --- a/crowdbunker.sh +++ b/crowdbunker.sh @@ -175,7 +175,7 @@ echo "########################################################################## echo "MISE A JOUR ~/.zen/bunkerbox/history.json" [[ "$(cat ~/.zen/bunkerbox/$VUID/media/history.json)" == "" ]] && echo "FATAL ERROR" && exit 1 # Upgrade local history.json with reverse current one - [[ -f ~/.zen/bunkerbox/$VUID/media/history.json ]]; then + if [[ -f ~/.zen/bunkerbox/$VUID/media/history.json ]]; then echo '{ "Videos":' > ~/.zen/bunkerbox/history.json cat ~/.zen/bunkerbox/$VUID/media/history.json | jq '.[] | reverse' >> ~/.zen/bunkerbox/history.json