Skip to content

Commit

Permalink
Add edit chart command
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiashochguertel committed Jun 25, 2023
1 parent 524eb76 commit ef40938
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ if [ -f "$HOME/bin/edit-chart.docker-compose.yml" ]; then
rm "$HOME/bin/edit-chart.docker-compose.yml"
fi

curl -sSLf https://raw.githubusercontent.com/tobiashochguertel/helm-editor-frontend/main/edit-chart > "$HOME"/bin/edit-chart && chmod +x "$HOME"/bin/edit-chart
curl -sSLf https://raw.githubusercontent.com/tobiashochguertel/helm-editor-frontend/main/docker-compose.yml > "$HOME"/bin/edit-chart.docker-compose.yml
curl -sSLf https://raw.githubusercontent.com/tobiashochguertel/helm-editor-frontend/main/edit-chart > "$HOME/bin/edit-chart" && chmod +x "$HOME/bin/edit-chart"
curl -sSLf https://raw.githubusercontent.com/tobiashochguertel/helm-editor-frontend/main/docker-compose.yml > "$HOME/bin/edit-chart.docker-compose.yml"

# Dasel
if [[ $OSTYPE == 'darwin'* ]]; then
curl -sSLf "$(curl -sSLf https://api.github.com/repos/tomwright/dasel/releases/latest | grep browser_download_url | grep -v .gz | grep darwin_amd64 | cut -d\" -f 4)" -L -o dasel && chmod +x dasel
mv ./dasel "$HOME"/bin/edit-chart.dasel
mv ./dasel "$HOME/bin/edit-chart.dasel"
fi
if [[ $OSTYPE == 'linux-gnu'* ]]; then
curl -sSLf "$(curl -sSLf https://api.github.com/repos/tomwright/dasel/releases/latest | grep browser_download_url | grep linux_amd64 | grep -v .gz | cut -d\" -f 4)" -L -o dasel && chmod +x dasel
mv ./dasel "$HOME"/bin/edit-chart.dasel
mv ./dasel "$HOME/bin/edit-chart.dasel"
fi

echo "Add the following line to your .bashrc or .bash_profile or .zshrc, ..."
Expand Down

0 comments on commit ef40938

Please sign in to comment.