diff options
author | davidovski <david@davidovski.xyz> | 2023-01-21 13:48:04 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2023-01-21 13:48:04 +0000 |
commit | 0d1cc409caa9f94ebd6334a920a992e8a8ae233e (patch) | |
tree | e7b23ddad25f3c45451bc4363ea6fe56e5c84f77 /src/xi.sh | |
parent | ee1692eaf63404cadafabb407c709a2d2f5c071b (diff) |
Add mirror feature
Diffstat (limited to 'src/xi.sh')
-rwxr-xr-x | src/xi.sh | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -13,6 +13,8 @@ #include remove.sh #include stats.sh #include bootstrap.sh +#include mirror.sh + #>echo "VERSION=$(git describe --always)" usage () { @@ -82,6 +84,9 @@ ${BLUE}Available Commands: ${LIGHT_GREEN}bootstrap ${LIGHT_BLUE}[additional packages...] ${LIGHT_CYAN}installs base packages and system files to an empty system + ${LIGHT_GREEN}mirror [path] + ${LIGHT_CYAN}create a repository mirror [default_path: /var/lib/xipkg/mirror] + ${LIGHT_GREEN}help ${LIGHT_CYAN}shows this message${RESET} @@ -223,6 +228,10 @@ else shift info $@ ;; + "mirror") + shift + mirror $@ + ;; "verify") shift [ -z "$*" ] && set -- $(ls ${SYSROOT}${INSTALLED_DIR}) |