mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-19 12:59:40 -07:00
Fix bash array test in auto-update
This commit is contained in:
parent
af787d8e7a
commit
02c1f8d621
1 changed files with 1 additions and 1 deletions
|
@ -342,7 +342,7 @@ if [ "${AUTOUPDATE}" = "yes" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if [ $FILE_OWNER ]; then
|
||||
if [ ${#FILE_OWNER[@]} -gt 0 ]; then
|
||||
for filename in $PLEXUPDATE_FILES; do
|
||||
chown ${FILE_OWNER[$filename]} $filename &> /dev/null || error "Failed to restore ownership for '$filename' after auto-update"
|
||||
chmod ${FILE_PERMS[$filename]} $filename &> /dev/null || error "Failed to restore permissions for '$filename' after auto-update"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue