diff options
| author | Deposite Pirate | 2026-02-18 05:41:16 +0100 |
|---|---|---|
| committer | Deposite Pirate | 2026-02-18 05:41:16 +0100 |
| commit | 20fe0b1e50e09ba6ff72caa59ec03c238a02fab7 (patch) | |
| tree | 0a2ecc990d5951642815f7274df05805f1f8eb8a /functions | |
| parent | d9b2168480207200d3538d0a3db10187b00508c3 (diff) | |
Fix /dev/null redirections
modified: functions/rlsxattr.fish
modified: functions/rsdos.fish
modified: functions/rsxattr.fish
Diffstat (limited to 'functions')
| -rw-r--r-- | functions/rlsxattr.fish | 2 | ||||
| -rw-r--r-- | functions/rsdos.fish | 2 | ||||
| -rw-r--r-- | functions/rsxattr.fish | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/functions/rlsxattr.fish b/functions/rlsxattr.fish index e52d820..94d9078 100644 --- a/functions/rlsxattr.fish +++ b/functions/rlsxattr.fish @@ -5,6 +5,6 @@ if not check_install 'getfattr' 'attr' return 1 end -command getfattr -R -h -d . 2>/dev/null | grep '^# file:' | sed 's/^# file: //' +command getfattr -R -h -d . &>/dev/null | grep '^# file:' | sed 's/^# file: //' end diff --git a/functions/rsdos.fish b/functions/rsdos.fish index eabe440..2f3463e 100644 --- a/functions/rsdos.fish +++ b/functions/rsdos.fish @@ -5,6 +5,6 @@ if not check_install 'setfattr' 'attr' return 1 end -command find . -exec setfattr -x user.DOSATTRIB {} + 2>/dev/null +command find . -exec setfattr -x user.DOSATTRIB {} + &>/dev/null end diff --git a/functions/rsxattr.fish b/functions/rsxattr.fish index bd1456e..974da17 100644 --- a/functions/rsxattr.fish +++ b/functions/rsxattr.fish @@ -10,9 +10,9 @@ if not check_install 'awk' 'gawk' return 1 end -for file in (getfattr -R -h -d . 2>/dev/null | grep '^# file:' | sed 's/^# file: //') - for attr in (getfattr -m '^user\.' "$file" 2>/dev/null | awk '/^[^#]/ {print $1}') - setfattr -x $attr $file 2>/dev/null +for file in (getfattr -R -h -d . &>/dev/null | grep '^# file:' | sed 's/^# file: //') + for attr in (getfattr -m '^user\.' "$file" &>/dev/null | awk '/^[^#]/ {print $1}') + setfattr -x $attr $file &>/dev/null end end |
