Commit bf3b0e74 authored by Vitaly Lipatov's avatar Vitaly Lipatov

erc: add squashfs support

parent df9596fd
...@@ -79,6 +79,7 @@ zstd ...@@ -79,6 +79,7 @@ zstd
exe exe
AppImage AppImage
appimage appimage
squashfs
EOF EOF
} }
......
...@@ -94,6 +94,13 @@ extract_archive() ...@@ -94,6 +94,13 @@ extract_archive()
exit exit
fi fi
if [ "$type" = "squashfs" ] ; then
local subdir="$(basename "$arc" .squashfs)"
mkdir -p "$subdir" && cd "$subdir" || fatal
docmd $HAVE_7Z x ../"$arc"
exit
fi
if have_patool ; then if have_patool ; then
docmd patool $verbose extract "$arc" "$@" docmd patool $verbose extract "$arc" "$@"
return return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment