From 1ad6e64a7b0970222cb4ebba8336b16af8c7c681 Mon Sep 17 00:00:00 2001 From: pvincent Date: Thu, 6 Aug 2026 22:24:00 +0400 Subject: [PATCH] fix2 --- install.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index a6562b0..d23dd89 100755 --- a/install.sh +++ b/install.sh @@ -12,14 +12,22 @@ function bootstrap { local temp_dir temp_dir=$(mktemp -d) pushd "$temp_dir" || return 2 - curl --no-progress-meter -O $MAIN_TAR_GZ_URL + curl -q -O $MAIN_TAR_GZ_URL tar -xzf main.tar.gz --directory "$DESTINATION" + echo "directory: miaou-bash successfully deployed to $DESTINATION" popd || return 3 + else + echo "directory: miaou-bash already deployed!" fi local source_bin="$MIAOU_BASH_DIR/bin/miaou-bash" local dest_bin="/usr/bin/miaou-bash" - cmp -s "$source_bin" "$dest_bin" || cp -f "$source_bin" "$dest_bin" + if ! cmp -s "$source_bin" "$dest_bin"; then + cp -f "$source_bin" "$dest_bin" + echo "executable: /usr/bin/miaou-bash freshly created" + else + echo "executable: /usr/bin/miaou-bash up-to-date!" + fi export MIAOU_BASH_DIR="$DESTINATION/miaou-bash" }