diff --git a/pman.sh b/pman.sh index b05f752..798ff07 100755 --- a/pman.sh +++ b/pman.sh @@ -14,7 +14,7 @@ check_sudo() { if command -v "sudo" &>/dev/null; then command="sudo $command" else - echo "sudo command needed but not found" > /dev/stderr + echo "\`sudo\` command needed but not found" >&2 exit 1 fi fi @@ -42,7 +42,7 @@ elif [ "$command_args" = "reflector" ]; then command_args=$(cat /etc/pacman.d/mirrorlist 2>/dev/null | grep -e "With.*reflector" | sed 's/#.*reflector //') # Check if reflector was actually used to generate the mirrorlist if [ "$command_args" = "" ]; then - echo "Error: reflector was not used to generate mirrorlist or mirrorlist location differ from standard" + echo "Error: reflector was not used to generate mirrorlist or mirrorlist location differ from standard" >&2 exit 1 fi su_needed=true