aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorGunnar Andersson <gandersson@genivi.org>2018-03-17 12:47:03 +0100
committerOscar Andreasson <oan@frozentux.net>2018-05-18 08:42:50 +0200
commit85073e0fd35d8bec45f3a6eb405213cbcf648e80 (patch)
tree1328d808c69bfac16ef1fa2b19a856f7ee91f763 /scripts
parent8acf41a76ca164fc57671a2178973399ee7e916e (diff)
downloadmeta-ivi-85073e0fd35d8bec45f3a6eb405213cbcf648e80.tar.gz
meta-ivi-85073e0fd35d8bec45f3a6eb405213cbcf648e80.tar.bz2
meta-ivi-85073e0fd35d8bec45f3a6eb405213cbcf648e80.zip
checkout script: remove bash specific syntax
Script used >& syntax but did not specify a shell that is guaranteed to understand it (csh, bash, zsh). This triggers the message "Syntax error: Bad fd number" on some build machines. An alternative would be to use /bin/bash explicitly since ci-build requires bash anyway, but maybe checkout might be used on its own. This is just as easy. Signed-off-by: Gunnar Andersson <gandersson@genivi.org>
Diffstat (limited to 'scripts')
-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"