From 7c3c558a70ffc22620fd3efe43ef8cfc87c33b43 Mon Sep 17 00:00:00 2001 From: punkfairie <23287005+punkfairie@users.noreply.github.com> Date: Mon, 15 Apr 2024 13:14:53 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(fish):=20Fix=20extract()=20f?= =?UTF-8?q?unction?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dot_config/fish/functions/extract.fish | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dot_config/fish/functions/extract.fish b/dot_config/fish/functions/extract.fish index 3c56e05..288349d 100644 --- a/dot_config/fish/functions/extract.fish +++ b/dot_config/fish/functions/extract.fish @@ -4,8 +4,8 @@ # Usage: extract function extract -a file - if [ -f "$file" ] - switch file + if test -f "$file" + switch $file case "*.tar.bz2" tar -jxvf $file case "*.tar.gz" @@ -13,7 +13,7 @@ function extract -a file case "*.bz2" bunzip2 $file case "*.dmg" - if [ "$(uname)" = Darwin ] + if test "$(uname)" = Darwin hdiutil mount $file end case "*.gz"