FIX: Add 'exit' statement to install.sh archlinux steps

This commit is contained in:
neilotoole 2022-12-30 20:20:54 -07:00
parent cca980d8e0
commit b911df7267
3 changed files with 6 additions and 17 deletions

View File

@ -5,6 +5,9 @@ on:
- '**.md'
- 'sq.json' # This is updated by scoop; no need to run a new build
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
GO_VERSION: 1.19.3
GORELEASER_VERSION: 1.13.1

View File

@ -134,13 +134,13 @@ if command_exists pacman; then
if command_exists yay; then
echo "Installing via yay..."
yay -S --noconfirm sq-bin
exit 0
exit
fi
if command_exists paru; then
echo "Installing via paru..."
paru -S --noconfirm sq-bin
exit 0
exit
fi
# Fall back to pacman
@ -151,6 +151,7 @@ if command_exists pacman; then
cd sq-bin
makepkg -sri --noconfirm
rm -rf /tmp/sq-bin*
exit
fi

View File

@ -1,15 +0,0 @@
#!/bin/sh
# ".completions.sh regenerates completions to "./completions".
set +e
brew uninstall neilotoole/sq/sq
if [[ $(which sq) ]]; then
echo "sq is still present"
rm $(which sq)
fi
set -e
brew install neilotoole/sq/sq
# TODO: Test the version