Skip to content

Commit 07fa3ec

Browse files
committed
Handle eval not being a thing
Refs https://github.com/orgs/pkgxdev/discussions/849
1 parent de4de59 commit 07fa3ec

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

installer.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,11 @@ if [ $# -gt 0 ]; then
145145
pkgx "$@"
146146
elif [ $(basename "/$0") != 'installer.sh' ]; then
147147
# ^^ temporary exception for action.ts
148-
eval "$(pkgx --shellcode)" 2>/dev/null
148+
149+
if type eval >/dev/null 2>&1; then
150+
# we `type eval` as on Travis there was no `eval`!
151+
eval "$(pkgx --shellcode)" 2>/dev/null
152+
fi
149153

150154
if ! _is_ci; then
151155
echo "now type: pkgx --help" >&2

0 commit comments

Comments
 (0)