Del chmod +x in update.sh targeting scriptdata

Although I am not the one creating update.sh,
I am certain that giving execute permission for
scripts under scriptdata/ is wrong cuz
they are not for executing independently,
but for being sourced by other scripts.
This commit is contained in:
clsty
2025-10-03 00:10:45 +08:00
parent a0229e8132
commit cd48f45462
-6
View File
@@ -813,12 +813,6 @@ fi
# Step 4: Update script permissions
log_header "Updating Script Permissions"
if [[ -d "${REPO_DIR}/scriptdata" ]]; then
find "${REPO_DIR}/scriptdata" -type f -name "*.sh" -exec chmod +x {} \;
find "${REPO_DIR}/scriptdata" -type f -executable -exec chmod +x {} \;
log_success "Updated script permissions"
fi
# Make sure local bin scripts are executable
if [[ -d "${HOME}/.local/bin" ]]; then
find "${HOME}/.local/bin" -type f -exec chmod +x {} \; 2>/dev/null || true