boostrap twice

This commit is contained in:
pvincent
2026-08-08 12:10:15 +04:00
parent f4ea5d999c
commit 50d48b6359
3 changed files with 7 additions and 19 deletions
+1 -3
View File
@@ -6,11 +6,10 @@ readonly MIAOU_BASH_DIR=/opt/miaou-bash
readonly MAIN_TAR_GZ_URL="https://git.artcode.re/miaou/miaou-bash/archive/main.tar.gz"
## FUNCTIONS
function bootstrap {
cd "$(mktemp -d)" || exit 3
curl -s -O $MAIN_TAR_GZ_URL
tar -xzf main.tar.gz --directory "$MIAOU_BASH_DIR/.."
tar -xzf main.tar.gz --directory "$(dirname $MIAOU_BASH_DIR)"
local source_bin="$MIAOU_BASH_DIR/bin/miaou-bash"
local dest_bin="/usr/bin/miaou-bash"
@@ -18,7 +17,6 @@ function bootstrap {
cp -f "$source_bin" "$dest_bin"
fi
echo "miaou-bash deployed to: $MIAOU_BASH_DIR"
}
function assert_supported_distro {