Skip to content

Commit

Permalink
fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
QiuSimons committed Jun 18, 2024
1 parent 67cd1b2 commit f9e914f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SCRIPTS/08_fix_permissions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ find "$BASE_DIR" -path "$BASE_DIR/staging_dir" -prune -o -type d -exec chmod 755

# Setting permissions for files, excluding staging_dir
find "$BASE_DIR" -path "$BASE_DIR/staging_dir" -prune -o -type f -exec chmod 644 "{}" +
find "$BASE_DIR" -path "$BASE_DIR/staging_dir" -prune -o -type f ! -name "*.c" ! -name "*.h" -exec dos2unix "{}" +
find "$BASE_DIR" -path "$BASE_DIR/staging_dir" -prune -o -type f -exec grep -Iq . "{}" \; -exec grep -l $'\r\n' "{}" \; -exec dos2unix "{}" +

# Setting executable permissions for specific scripts, excluding staging_dir
find "$BASE_DIR" -path "$BASE_DIR/staging_dir" -prune -o -type f \( -name "*.sh" -o -name "*.pl" -o -name "*.py" -o -name "*.awk" -o -name "*bin*" -o -name "Makefile" -o -name "configure" \) -exec chmod 755 "{}" +
Expand Down

0 comments on commit f9e914f

Please sign in to comment.