mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-08-05 16:48:38 +00:00
add aunpack support
This commit is contained in:
parent
a93da1c695
commit
1a76b1cd90
1 changed files with 5 additions and 0 deletions
|
@ -20,6 +20,11 @@ mkcd ()
|
||||||
|
|
||||||
extract ()
|
extract ()
|
||||||
{
|
{
|
||||||
|
if ( command -v aunpack > /dev/null 2>&1 ) ; then
|
||||||
|
aunpack "${1}"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -f "$1" ] ; then
|
if [ ! -f "$1" ] ; then
|
||||||
echo "The file ("$1") does not exist!"
|
echo "The file ("$1") does not exist!"
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Reference in a new issue