This commit is contained in:
pvincent
2026-08-06 22:15:53 +04:00
parent 12fab01be6
commit 06e5c37c8f
+3 -4
View File
@@ -2,14 +2,13 @@
## CONSTANTS
readonly DESTINATION=/opt/miaou-bash
readonly DESTINATION=/opt
readonly MAIN_TAR_GZ_URL="https://git.artcode.re/miaou/miaou-bash/archive/main.tar.gz"
## FUNCTIONS
function bootstrap {
if [[ ! -d "$DESTINATION" ]]; then
mkdir -p "$DESTINATION"
if [[ ! -d "$DESTINATION/miaou-bash" ]]; then
local temp_dir
temp_dir=$(mktemp -d)
pushd "$temp_dir" || return 2
@@ -22,7 +21,7 @@ function bootstrap {
local dest_bin="/usr/bin/miaou-bash"
cmp -s "$source_bin" "$dest_bin" || cp -f "$source_bin" "$dest_bin"
export MIAOU_BASH_DIR="$DESTINATION"
export MIAOU_BASH_DIR="$DESTINATION/miaou-bash"
}
## MAIN