Browse Source

The line with the user message for failure missed the call to echo.

em 40 years ago
parent
commit
ac8dee35d0
1 changed files with 6 additions and 1 deletions
  1. 6 1
      mach/install

+ 6 - 1
mach/install

@@ -1,7 +1,12 @@
 MACH=`(cd .. ; basename \`pwd\`)`
-if cp $1 ../../../lib/${MACH}/$1
+if cp $1 ../../../lib/${MACH}/$1 >/dev/null 2>&1 ||
+	 { rm -f ../../../lib/${MACH}/$1 >/dev/null 2>&1 &&
+           cp $1 ../../../lib/${MACH}/$1 >/dev/null 2>&1
+	 }
 then
 	set -
 	ranlib ../../../lib/${MACH}/$1 >/dev/null 2>&1
 	exit 0
+else
+	echo Sorry, can not create "lib/${MACH}/$1".
 fi