Fix bash array test in auto-update

This commit is contained in:
Alex Malinovich 2016-12-05 14:53:18 -08:00
commit 02c1f8d621

View file

@ -342,7 +342,7 @@ if [ "${AUTOUPDATE}" = "yes" ]; then
exit 1 exit 1
fi fi
if [ $FILE_OWNER ]; then if [ ${#FILE_OWNER[@]} -gt 0 ]; then
for filename in $PLEXUPDATE_FILES; do for filename in $PLEXUPDATE_FILES; do
chown ${FILE_OWNER[$filename]} $filename &> /dev/null || error "Failed to restore ownership for '$filename' after auto-update" 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" chmod ${FILE_PERMS[$filename]} $filename &> /dev/null || error "Failed to restore permissions for '$filename' after auto-update"