From 7d4d0c9d51288802b591a352e0e50b32bd8d149e Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 27 Mar 2020 11:05:33 +0100 Subject: [PATCH] remove sudo --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index c3f2e20..5f2e454 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -93,7 +93,7 @@ then if [ "$type" = "files" ]; then mv "${full_file}_count" "$full_path" fi - done <<< "$(sudo find "$var_root/$type" -type f)" # List all files, without directories + done <<< "$(find "$var_root/$type" -type f)" # List all files, without directories done # And clean the old directories @@ -108,7 +108,7 @@ then then rm -r "$file" fi - done <<< "$(sudo find "$var_root/$type" -maxdepth 1 -mindepth 1 -type d)" # List all first level directories + done <<< "$(find "$var_root/$type" -maxdepth 1 -mindepth 1 -type d)" # List all first level directories done fi