fixed a lot of stuff

This commit is contained in:
Honney
2026-06-23 00:23:16 +02:00
parent 74f4b9b1be
commit 6591f6b020
24 changed files with 626 additions and 455 deletions
+5 -2
View File
@@ -3,12 +3,15 @@ function pack
echo "Usage: pack <archive-name> <file-or-dir> [more files...]"
return 1
end
if not command -q tar
echo "pack: 'tar' is not installed. Install it via your package manager."
return 1
end
set archive $argv[1]
set targets $argv[2..-1]
# Ensure .tar.xz extension
if not string match -r '\.tar\.xz$' -- $archive
if not string match -q '*.tar.xz' -- $archive
set archive "$archive.tar.xz"
end