Compare commits

...

2 Commits

Author SHA1 Message Date
Dominika Liberda 3f79b9b48d Merge branch 'master' into 'master'
fix behavior of template string

See merge request domi/bashtube!3
2021-03-18 22:18:42 +00:00
sech1p bc128de8f9 fix behavior of template string 2021-03-18 23:14:46 +01:00
1 changed files with 5 additions and 1 deletions

View File

@ -4,7 +4,11 @@ source ${cfg[namespace]}/templates/header.shs
declare -A strings
strings[favourites]="No favorite videos found,<br>you can do it first! ^w^"
if [[ -s storage/faves ]]; then
strings[favourites]=""
else
strings[favourites]="No favorite videos found,<br>you can do it first! ^w^"
fi
IFS=$'\n'
for i in $(tac storage/faves); do