]> Creatis software - clitk.git/blobdiff - tests/fetch_data_test.sh
tests for getSpacing and getInfo
[clitk.git] / tests / fetch_data_test.sh
index ce581b67187fe1eeb3abe444a94a20ab4f255942..f516146d511b7520cb40db727290f92a673ecd2b 100755 (executable)
@@ -2,22 +2,11 @@
 #
 # arg[1] is TESTING_BINARY_DIR
 # This script has been edited from itk/Modules/ThirdParty/NIFTI/src/nifti/Testing/nifti_regress_test/cmake_testscripts/fetch_data_test.sh
-if [ $# -lt 1 ]
-then
-echo Missing Binary directory name
-exit 1
-fi
-
-repo=http://localhost/data/.git
-
 if cd $1
 then
-git pull
+  git pull
 else
-git clone $repo $1
-exit 1
+  git clone $2 $1
 fi
-
-
 exit 0