From ea1c81bbf86b134b075b80fa99d3633e67b556b2 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 7 Aug 2013 19:02:34 +1200 Subject: Add trailing newlines for printf calls --- psshd | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/psshd b/psshd index c21e3bf..5eec323 100755 --- a/psshd +++ b/psshd @@ -23,10 +23,10 @@ startstopdaemon='/sbin/start-stop-daemon' # Neither of those are likely to be in your PATH if you're a normal user, so we # hardcode the paths and test for their existence if [[ ! -x "$autossh" ]]; then - printf "Can't execute ${autossh}!" >&2 + printf "Can't execute ${autossh}!\n" >&2 exit 1 elif [[ ! -x "$startstopdaemon" ]]; then - printf "Can't execute ${startstopdaemon}!" >&2 + printf "Can't execute ${startstopdaemon}!\n" >&2 exit 1 fi @@ -38,11 +38,11 @@ do port="$OPTARG" ;; \?) - printf "Invalid option $OPTARG" >&2 + printf "Invalid option $OPTARG\n" >&2 exit 1 ;; :) - printf "Option -$OPTARG requires an argument" >&2 + printf "Option -$OPTARG requires an argument\n" >&2 exit 1 ;; esac @@ -52,14 +52,14 @@ shift "$((OPTIND-1))" # If no port, give up with usage instructions if [[ ! -n "$port" ]] then - printf "USAGE: $0 -p -- " + printf "USAGE: $0 -p -- \n" exit 1 fi # Set up a PID dir dir="${TMPDIR:-/tmp}/psshd-${UID}" if ! mkdir -p "$dir"; then - printf "Couldn't create directory ${dir} for PID file" >&2 + printf "Couldn't create directory ${dir} for PID file\n" >&2 exit 1 fi -- cgit v1.2.3