We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dadecda commit 2ecf677Copy full SHA for 2ecf677
1 file changed
scripts/start-utils
@@ -560,6 +560,17 @@ function extract() {
560
# remaining args are paths within the archive to extract; if none, extract everything
561
562
type=$(file -b --mime-type "${src}")
563
+ if [[ "$type" == application/octet-stream ]]; then
564
+ logWarning "Detected non-specific file type $type for $src"
565
+ case "$src" in
566
+ *.zip)
567
+ log "Assuming zip from extension"
568
+ type=application/zip
569
+ ;;
570
+ # otherwise fall through to
571
+ esac
572
+ fi
573
+
574
case "${type}" in
575
application/zip)
576
unzip -o -q -d "${destDir}" "${src}" "$@"
0 commit comments