Skip to content

Commit

Permalink
create local bin before building linter
Browse files Browse the repository at this point in the history
  • Loading branch information
pygrum committed Nov 29, 2023
1 parent 23334d8 commit 37ffaab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion scripts/docker-install-monarch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,14 @@ echo "stopping container"
docker stop monarch-ctr
echo "done"

mkdir -p "$HOME/.local/bin" 2>/dev/null

echo "installing linter for project configuration files"
go build cmd/linter/royal/royal-lint.go
mv royal-lint "$HOME/.local/bin/royal-lint"
echo "royal-lint saved to $HOME/.local/bin/royal-lint"

echo "creating run script..."
mkdir -p "$HOME/.local/bin" 2>/dev/null
cat <<EOF > "$HOME/.local/bin/monarch.sh"
#!/bin/bash
docker start monarch-ctr
Expand Down
4 changes: 2 additions & 2 deletions scripts/install-monarch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ openssl req -newkey rsa:4096 \

echo "done"

mkdir -p "$HOME/.local/bin" 2>/dev/null

echo "installing linter for project configuration files"
go build ../cmd/linter/royal/royal-lint.go
mv royal-lint "$HOME/.local/bin/royal-lint"
echo "royal-lint saved to $HOME/.local/bin/royal-lint"

echo "building monarch.."
mkdir -p "${HOME}/.local/bin" 2>/dev/null

go build ../cmd/monarch/monarch.go
mv ./monarch "${HOME}/.local/bin"

Expand Down

0 comments on commit 37ffaab

Please sign in to comment.