diff -uri a/install-sh b/install-sh --- a/install-sh 2013-09-14 01:04:27.285245115 +0200 +++ b/install-sh 2013-09-14 01:04:34.917244870 +0200 @@ -160,6 +160,10 @@ case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac + if test ! -d $dst_arg; then + echo "$0: $dst_arg is not a directory." >&2 + exit 1 + fi shift;; -T) no_target_directory=true;;