Browse Source
[enh] Remove sudo and double brackets
pull/170/head
ljf (zamentur)
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
scripts/upgrade
|
|
@ -205,8 +205,8 @@ do |
|
|
# Backup 3rd party applications from the current nextcloud |
|
|
# Backup 3rd party applications from the current nextcloud |
|
|
# But do not overwrite if there is any upgrade |
|
|
# But do not overwrite if there is any upgrade |
|
|
# (apps directory already exists in Nextcloud archive) |
|
|
# (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}" |
|
|
&& cp -a "${final_path}/apps/${nc_app_dir}" "${tmpdir}/apps/${nc_app_dir}" |
|
|
done |
|
|
done |
|
|
|
|
|
|
|
|
|