Browse Source

c-n-f: replace 1>&2 with >&2

It's just a cosmetic change.
Jakub Jirutka 1 year ago
parent
commit
c25e5d88ef
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      command-not-found.sh

+ 4
- 4
command-not-found.sh View File

@@ -24,15 +24,15 @@
24 24
 results=$(apk search -xv "cmd:$1" 2>/dev/null)
25 25
 
26 26
 if [ "$results" ]; then
27
-	printf "The program '%s' may be found in these packages:\n" "$1" 1>&2
27
+	printf "The program '%s' may be found in these packages:\n" "$1" >&2
28 28
 	printf "%s\n" "$results" | while read atom _ desc
29 29
 	do
30 30
 		atom=${atom%-*}; atom=${atom%-*}  # remove version
31
-		printf " * %s: %s\n" "$atom" "$desc" 1>&2
31
+		printf " * %s: %s\n" "$atom" "$desc" >&2
32 32
 	done
33
-	printf "To install packages: 'apk add <selected package>'\n" 1>&2
33
+	printf "To install packages: 'apk add <selected package>'\n" >&2
34 34
 else
35
-	printf "%s: not found\n" "$1" 1>&2
35
+	printf "%s: not found\n" "$1" >&2
36 36
 fi
37 37
 
38 38
 # POSIX EX_NOTFOUND exit code