1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00

[enh] Remove sudo and double brackets

This commit is contained in:
ljf (zamentur) 2019-02-28 18:05:10 +01:00 committed by GitHub
parent 15f6eb637f
commit 8bee85518d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -205,8 +205,8 @@ do
# Backup 3rd party applications from the current nextcloud
# But do not overwrite if there is any upgrade
# (apps directory already exists in Nextcloud archive)
for nc_app_dir in $(sudo ls "${final_path}/apps"); do
[[ ! -d "${tmpdir}/apps/${nc_app_dir}" ]] \
for nc_app_dir in $(ls "${final_path}/apps"); do
[ ! -d "${tmpdir}/apps/${nc_app_dir}" ] \
&& cp -a "${final_path}/apps/${nc_app_dir}" "${tmpdir}/apps/${nc_app_dir}"
done