aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/checkout6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/checkout b/scripts/checkout
index c0652a6..d1234b4 100755
--- a/scripts/checkout
+++ b/scripts/checkout
@@ -10,11 +10,11 @@ update_git() {
_git=$1
if [ -d ../${_git} ]; then
cd ../${_git}
- _null=`git status >& /dev/null`
+ _null=`git status >/dev/null 2>&1`
_r=$?
if [ $_r -eq 0 ]; then
- git checkout master >& /dev/null
- git pull >& /dev/null
+ git checkout master >/dev/null 2>&1
+ git pull >/dev/null 2>&1
cd ${cur_dir}
else
echo "fatal: Not a git repository"