if missing

This commit is contained in:
fred 2022-04-08 13:58:51 +02:00
parent df31f3bfb5
commit 42739ab8ca
1 changed files with 1 additions and 1 deletions

View File

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