quick fix
This commit is contained in:
@@ -1,15 +1,15 @@
|
|||||||
#!/usr/bin/env miaou-bash
|
#!/usr/bin/env miaou-bash
|
||||||
|
|
||||||
# CONSTANTS
|
# CONSTANTS
|
||||||
|
[[ ! -v MAIN_TAR_GZ_URL ]] &&
|
||||||
readonly MAIN_TAR_GZ_URL="https://git.artcode.re/miaou/miaou-bash/archive/main.tar.gz"
|
readonly MAIN_TAR_GZ_URL="https://git.artcode.re/miaou/miaou-bash/archive/main.tar.gz"
|
||||||
|
|
||||||
# FUNCTIONS
|
# FUNCTIONS
|
||||||
|
|
||||||
function bootstrap {
|
function bootstrap {
|
||||||
cd "$(mktemp -d)" || exit 3
|
cd "$(mktemp -d)" || exit 3
|
||||||
curl -s -O $MAIN_TAR_GZ_URL
|
curl -s -O $MAIN_TAR_GZ_URL
|
||||||
tar -xzf main.tar.gz --directory "$(dirname $MIAOU_BASH_DIR)"
|
tar -xzf main.tar.gz --directory "$(dirname "$MIAOU_BASH_DIR")"
|
||||||
|
|
||||||
local source_bin="$MIAOU_BASH_DIR/bin/miaou-bash"
|
local source_bin="$MIAOU_BASH_DIR/bin/miaou-bash"
|
||||||
local dest_bin="/usr/bin/miaou-bash"
|
local dest_bin="/usr/bin/miaou-bash"
|
||||||
|
|||||||
Reference in New Issue
Block a user