Skip to content

Commit 351afce

Browse files
committed
wordpad: Silence unimportant internal ls errors
So that e.g. `wordpad something.rtf` terminal output is not noised with messages about some paths not being there: $ wordpad share/WinGit/ReleaseNotes.rtf ls: C:\Program Files/Windows NT/*/wordpad.exe: No such file or directory # working wordpad starts here Signed-off-by: Kirill Smelkov <[email protected]>
1 parent 97bb03a commit 351afce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/wordpad

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
WORDPAD="$(ls {"$PROGRAMFILES/Windows NT","$SYSTEMROOT"}/*/wordpad.exe | head -1)"
3+
WORDPAD="$(ls {"$PROGRAMFILES/Windows NT","$SYSTEMROOT"}/*/wordpad.exe 2>&- | head -1)"
44

55
test $# = 1 &&
66
case "$1" in

0 commit comments

Comments
 (0)