Skip to content

Commit 476d939

Browse files
committed
don’t install pkgx@latest as well as selected v
1 parent 0d491eb commit 476d939

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ async function go() {
7272
// use our installer to install any required pre-requisites from the system packager
7373
const installer_script = path.join(path.dirname(__filename), "installer.sh")
7474
if (process.getuid && process.getuid() == 0) {
75-
await exec(installer_script)
75+
await exec(installer_script, [], { env: {...process.env, PKGX_ONLY_INSTALL_PREREQS: '1' } })
7676
} else {
7777
await exec('sudo', [installer_script])
7878
}

installer.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ _should_install_pkgx() {
147147

148148
########################################################################### meat
149149

150+
if [ "$PKGX_ONLY_INSTALL_PREREQS" = 1 ]; then
151+
_install_pre_reqs
152+
exit 0
153+
fi
154+
150155
if _should_install_pkgx; then
151156
_install_pkgx "$@"
152157
elif [ $# -eq 0 ]; then

0 commit comments

Comments
 (0)