Revision 286efc1ff1f465406d2a3256ffa8a6d33fa26055 authored by Sébastien Loriot on 10 January 2017, 13:45:19 UTC, committed by Sébastien Loriot on 10 January 2017, 13:45:19 UTC
1 parent 706e8c8
Raw File
detect_wrong_permissions
#!/bin/zsh

setopt extendedglob nullglob

files=(((^build*)/)#(#i)*.^(py|sh|run|sh|csh|pl|perl|bin|out)(.x))
#ls -1 ((^build*)/)#(#i)*.^(py|sh|run|sh|csh|pl|perl|bin|out)(.x) 2>/dev/null || exit 0
if [ ${#files[@]} -gt 0 ]; then
    ls -1 "${(@)files}"
    exit 1
else
    exit 0
fi
back to top