Skip to content

Commit 89aaba2

Browse files
Fix prepare.sh script
1 parent 4ded870 commit 89aaba2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

prepare.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,14 @@
33
/bin/rm -rf cloudinary/static
44
mkdir -p cloudinary/static
55
cd cloudinary/static
6-
curl -L https://github.com/cloudinary/cloudinary_js/tarball/master | tar zxvf - --strip=1 --exclude test '*/html' '*/js'
6+
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'
716

0 commit comments

Comments
 (0)