Skip to content

Commit d703046

Browse files
committed
Fix spurious messages
1 parent bb5bfac commit d703046

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
# GitHub Action
88

99
```yaml
10-
- uses: pkgxdev/setup@v1
10+
- uses: pkgxdev/setup@v2
1111
```
1212
1313
Installs the latest version of `pkgx`.
1414

1515
See [`action.yml`] for all inputs and outputs, but here’s the usual ones:
1616

1717
```yaml
18-
- uses: pkgxdev/setup@v1
18+
- uses: pkgxdev/setup@v2
1919
with:
2020
+: deno@1.30
2121
rust@1.60 # we understand colloquial names, generally just type what you know

installer.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,22 @@ _install_pre_reqs() {
2929
$SUDO apt-get $cmd -qq -o=Dpkg::Use-Pty=0 $@
3030
}
3131
else
32-
echo "ensure you have the `pkgx` pre-requisites installed:" >&2
3332
apt() {
3433
case "$1" in
3534
update)
36-
echo >&2
35+
echo "ensure you have the `pkgx` pre-requisites installed:" >&2
3736
;;
3837
install)
3938
echo " apt-get" "$@" >&2
4039
;;
4140
esac
4241
}
4342
yum() {
43+
echo "ensure you have the `pkgx` pre-requisites installed:" >&2
4444
echo " yum" "$@" >&2
4545
}
4646
pacman() {
47+
echo "ensure you have the `pkgx` pre-requisites installed:" >&2
4748
echo " pacman" "$@" >&2
4849
}
4950
fi
@@ -107,7 +108,7 @@ _install_pkgx() {
107108

108109
rm -r "$tmpdir"
109110

110-
if [ "$(command -v pkgx)" != /usr/local/bin/pkgx ]; then
111+
if [ "$(command -v pkgx 2>&1)" != /usr/local/bin/pkgx ]; then
111112
echo "warning: active pkgx is not /usr/local/bin/pkgx" >&2
112113
export PATH="/usr/local/bin:$PATH" # so we can exec if required
113114
fi

0 commit comments

Comments
 (0)