summaryrefslogtreecommitdiff
path: root/scripts/vendor/common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vendor/common.sh')
-rwxr-xr-xscripts/vendor/common.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/vendor/common.sh b/scripts/vendor/common.sh
index 3679152218..680211bfcc 100755
--- a/scripts/vendor/common.sh
+++ b/scripts/vendor/common.sh
@@ -23,9 +23,10 @@ function init {
function extract {
echo ">> Unpacking files from $VENDOR/.cache/$NAME-$VERSION.tar.gz..."
- tar xzf "$VENDOR/.cache/$NAME-$VERSION.tar.gz" --strip-components=${STRIP_COMPONENTS:-1} -C "$VENDOR/$NAME" $@
+ [ ! -z "$(tar --version | grep "GNU tar")" ] && WC="--wildcards" || WC=""
+ tar xzf "$VENDOR/.cache/$NAME-$VERSION.tar.gz" $WC --strip-components=${STRIP_COMPONENTS:-1} -C "$VENDOR/$NAME" $@
}
function file_list {
- (cd "$VENDOR/$NAME" && find $@ | sort > "$VENDOR/$NAME/files.txt")
+ (cd "$VENDOR/$NAME" && find $@ | LC_ALL=C sort > "$VENDOR/$NAME/files.txt")
}