Bug fix: GitHub workflow image tests
[geeqie.git] / scripts / get-test-images.sh
index 103c0cb..db8700a 100755 (executable)
 ## $2 git test image repo. \n
 ##
 
-mkdir -p "$1"
-
-if ! git clone "$2" "$1"
+if [ ! -d "$1" ]
 then
-       exit 1
+       mkdir -p "$1"
+
+       if ! git clone "$2" "$1"
+       then
+               exit 1
+       fi
 fi
 
 for file in "$1/images/"*