forked from Shinonome/dots-hyprland
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:
@@ -813,12 +813,6 @@ fi
|
|||||||
# Step 4: Update script permissions
|
# Step 4: Update script permissions
|
||||||
log_header "Updating 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
|
# Make sure local bin scripts are executable
|
||||||
if [[ -d "${HOME}/.local/bin" ]]; then
|
if [[ -d "${HOME}/.local/bin" ]]; then
|
||||||
find "${HOME}/.local/bin" -type f -exec chmod +x {} \; 2>/dev/null || true
|
find "${HOME}/.local/bin" -type f -exec chmod +x {} \; 2>/dev/null || true
|
||||||
|
|||||||
Reference in New Issue
Block a user