Merge pull request #10 from Ehaic/main

Change ownership of directories
This commit is contained in:
W3LFARe 2024-12-22 12:29:14 -05:00 committed by GitHub
commit e1c0fccbb4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,6 +20,7 @@ if ! [[ -f "Server-Files-$SERVER_VERSION.zip" ]]; then
DIR_TEST=$(find . -type d -maxdepth 1 | tail -1 | sed 's/^.\{2\}//g')
if [[ $(find . -type d -maxdepth 1 | wc -l) -gt 1 ]]; then
cd "${DIR_TEST}"
find . -type d -exec chmod 777 {} +
mv -f * /data
cd /data
rm -fr "$DIR_TEST"