aboutsummaryrefslogtreecommitdiff
path: root/functions/7za.fish
blob: 8a5dbacd04573733c9fdb1be0ef51bccc935105d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function 7za --wraps 'bsdtar' --description "Emulate 7za with bsdtar"

if test (count $argv) -lt 1
  echo "Missing argument."
  return 1
end

if not check_install 'bsdtar' 'libarchive'
  echo "Can't find bsdtar."
  return 1
end

command bsdtar -xf "$argv[-1]"

end