Adjusts the file mode check for BSD based systems as default BSD stat uses "-f '%p'" to report the file mode. Also since `stat -p '%p' "$filename"` reports more information than just read, write, execute perms, pipe the output through `cut` to grab only the last three digits. Signed-off-by: Adam Jimerson <vendion@gmail.com>pull/246/head
parent
7628a1b61d
commit
a13311feac
Loading…
Reference in new issue