Skip to content

Commit

Permalink
chore: Make scripts exit on error
Browse files Browse the repository at this point in the history
  • Loading branch information
sondrelg committed Oct 6, 2022
1 parent 47055f8 commit 1218f0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/scripts/assert.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -eo pipefail

assert_in_one() {
local option1="$1"
local option2="$2"
Expand Down
4 changes: 3 additions & 1 deletion main.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
#!/usr/bin/env bash

set -eo pipefail

installation_script="$(mktemp)"
curl -sSL https://install.python-poetry.org/ --output "$installation_script"

if [ "${RUNNER_OS}" == "Windows" ]; then
path="C:/Users/runneradmin/AppData/Roaming/Python/Scripts"
else
path="$HOME/.local/"
path="$HOME/.local"
fi

echo -e "\n\033[33mSetting Poetry installation path as $path\033[0m\n"
Expand Down

0 comments on commit 1218f0b

Please sign in to comment.