We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
prepare.sh
1 parent 4ded870 commit 89aaba2Copy full SHA for 89aaba2
prepare.sh
@@ -3,5 +3,14 @@
3
/bin/rm -rf cloudinary/static
4
mkdir -p cloudinary/static
5
cd cloudinary/static
6
-curl -L https://github.com/cloudinary/cloudinary_js/tarball/master | tar zxvf - --strip=1 --exclude test '*/html' '*/js'
+
7
+OPTIONS=
8
9
+# GNU tar does not support wildcards by default, it needs explicit --wildcards option,
10
+# while BSD tar does not recognize this option
11
+if tar --version | grep -q 'gnu'; then
12
+ OPTIONS='--wildcards'
13
+fi
14
15
+curl -L https://github.com/cloudinary/cloudinary_js/tarball/master | tar zxvf - --strip=1 --exclude test $OPTIONS '*/html' '*/js'
16
0 commit comments