Skip to content

Commit

Permalink
fix: adjust installer copy logic [#1]
Browse files Browse the repository at this point in the history
  • Loading branch information
d3p1 committed Sep 14, 2024
1 parent e0c13a1 commit 9ea566b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/bin/setup/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ main() {
##
_setup_cli() {
print_message "Start CLI dir creation: $CLI_DIR" "notice"
mkdir -p "$CLI_DIR" && cd "$CLI_DIR"
mkdir -p "$CLI_DIR"
print_message "End CLI dir creation: $CLI_DIR" "notice"
}

Expand All @@ -80,9 +80,10 @@ _setup_cli() {
##
_install_cli() {
print_message "Start CLI installation" "notice"
cp "$BASE_DIR/../dockgento.sh" dockgento && chmod u+x dockgento
cp -R "$BASE_DIR/../lib/" . && chmod -R +x ./lib/
cp -R "$BASE_DIR/../etc/" .
cp "$BASE_DIR/../dockgento.sh" "$CLI_DIR/dockgento"
chmod u+x "$CLI_DIR/dockgento"
cp -R "$BASE_DIR/../lib/" "$CLI_DIR" && chmod -R +x "$CLI_DIR/lib/"
cp -R "$BASE_DIR/../etc/" "$CLI_DIR"
print_message "End CLI installation" "notice"
}

Expand Down

0 comments on commit 9ea566b

Please sign in to comment.