Skip to content

Commit

Permalink
Fix spurious messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Jan 14, 2025
1 parent bb5bfac commit d703046
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
# GitHub Action

```yaml
- uses: pkgxdev/setup@v1
- uses: pkgxdev/setup@v2
```
Installs the latest version of `pkgx`.

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

```yaml
- uses: pkgxdev/setup@v1
- uses: pkgxdev/setup@v2
with:
+: deno@1.30
rust@1.60 # we understand colloquial names, generally just type what you know
Expand Down
7 changes: 4 additions & 3 deletions installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,22 @@ _install_pre_reqs() {
$SUDO apt-get $cmd -qq -o=Dpkg::Use-Pty=0 $@
}
else
echo "ensure you have the `pkgx` pre-requisites installed:" >&2
apt() {
case "$1" in
update)
echo >&2
echo "ensure you have the `pkgx` pre-requisites installed:" >&2
;;
install)
echo " apt-get" "$@" >&2
;;
esac
}
yum() {
echo "ensure you have the `pkgx` pre-requisites installed:" >&2
echo " yum" "$@" >&2
}
pacman() {
echo "ensure you have the `pkgx` pre-requisites installed:" >&2
echo " pacman" "$@" >&2
}
fi
Expand Down Expand Up @@ -107,7 +108,7 @@ _install_pkgx() {

rm -r "$tmpdir"

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

0 comments on commit d703046

Please sign in to comment.