Browse Source

fix /opt

main
pvincent 4 days ago
parent
commit
06e5c37c8f
  1. 7
      install.sh

7
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

Loading…
Cancel
Save