Skip to content

Commit

Permalink
Changed pigz error message
Browse files Browse the repository at this point in the history
  • Loading branch information
kvasserman committed Jun 10, 2023
1 parent 17ef900 commit 0bbd00e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kbak
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function processOptions() {
[[ -z "$rsakey" || -f "$rsakey" ]] || usage "Key must be a file"
[ -z "$rsakey" ] || openssl rsa -check -in "$rsakey" -noout &>/dev/null || usage "Key must be a valid RSA private key"

[[ "$compressor" == 'pigz' && ! "$cpus" =~ ^[1-9][0-9]*$ ]] && usage "pigz option requires a number of processors (an integer greater than 0)"
[[ "$compressor" == 'pigz' && ! "$cpus" =~ ^[1-9][0-9]*$ ]] && usage "pigz option requires a number of processors"
break;;
*)
usage "Unknown option: $1";;
Expand Down

0 comments on commit 0bbd00e

Please sign in to comment.