diff --git a/scripts/update.sh b/scripts/update.sh
index f840b457b94bc8787ad60ea5dfe9d7491db75fbf..c8e98187104b4f1605c687e329e4d4b8da03cce7 100755
--- a/scripts/update.sh
+++ b/scripts/update.sh
@@ -13,6 +13,6 @@ for module in $GLUON_MODULES; do
 	cd "$1"/$module
 	git init
 
-	git checkout $commit 2>/dev/null || fetch $repo
+	git checkout $commit 2>/dev/null || git fetch $repo
 	git checkout -B base $commit
 done