mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 14:01:20 -03:00
Fix create-base-directories.fish with SELinux
(cherry picked from commit f224ff1d28)
This commit is contained in:
committed by
David Adam
parent
6d30751f1c
commit
1c57144f8b
@@ -10,8 +10,8 @@ $fish -c ''
|
||||
|
||||
# Check that existing directories kept their permissions, and new directories
|
||||
# have the right permissions according to the XDG Base Directory Specification.
|
||||
# Use command ls to turn off indicators in case of xattrs or similar.
|
||||
command ls -ld $dir/old $dir/old/new $dir/old/new/fish | awk '{print $1}'
|
||||
# Use command ls and awk to strip off xattr or SELinux indicators.
|
||||
command ls -ld $dir/old $dir/old/new $dir/old/new/fish | awk '{print substr($1, 1, 10)}'
|
||||
# CHECK: drwxr-xr-x
|
||||
# CHECK: drwx------
|
||||
# CHECK: drwx------
|
||||
|
||||
Reference in New Issue
Block a user