only echo install message if copy succeeded

This commit is contained in:
Ivan Malopinsky
2015-12-02 23:54:30 -05:00
parent 615988dc01
commit 4482885845
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env bash
INSTALL_DIR=${INSTALL_DIR:-/usr/local/bin}
cp git-fresh $INSTALL_DIR
[ -e $INSTALL_DIR/git-fresh ] && echo git-fresh installed in $INSTALL_DIR
cp git-fresh $INSTALL_DIR && ([ -e $INSTALL_DIR/git-fresh ] && echo git-fresh installed in $INSTALL_DIR)
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "git-fresh",
"version": "1.2.0",
"version": "1.2.1",
"description": "Utility to keep Git repositories fresh",
"global": true,
"repo": "imsky/git-fresh",