mirror of
https://github.com/YunoHost-Apps/jirafeau_ynh.git
synced 2024-09-03 19:35:53 +02:00
remove sudo
This commit is contained in:
parent
781f5fa244
commit
7d4d0c9d51
1 changed files with 2 additions and 2 deletions
|
@ -93,7 +93,7 @@ then
|
||||||
if [ "$type" = "files" ]; then
|
if [ "$type" = "files" ]; then
|
||||||
mv "${full_file}_count" "$full_path"
|
mv "${full_file}_count" "$full_path"
|
||||||
fi
|
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
|
done
|
||||||
|
|
||||||
# And clean the old directories
|
# And clean the old directories
|
||||||
|
@ -108,7 +108,7 @@ then
|
||||||
then
|
then
|
||||||
rm -r "$file"
|
rm -r "$file"
|
||||||
fi
|
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
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue