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