From 06e5c37c8f76da27a5d8bb4c6bb383e33694c89a Mon Sep 17 00:00:00 2001 From: pvincent Date: Thu, 6 Aug 2026 22:15:53 +0400 Subject: [PATCH] fix /opt --- install.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 31790e5..a6562b0 100755 --- a/install.sh +++ b/install.sh @@ -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