Skip to content

Commit

Permalink
fix when passing an ssh host
Browse files Browse the repository at this point in the history
  • Loading branch information
gregsadetsky committed May 23, 2024
1 parent 514c70f commit c9c2b18
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ latest_release=$(gh release list --limit 1 --json tagName --jq '.[0].tagName')
version=$(cat package.json | jq -r '.version')

# check if the latest release is the same as the version in package.json
if [ "$latest_release" = "v$version" ]; then
echo "The latest release is the same as the version in package.json. Please update the version in package.json before running this script"
exit 1
fi
# don't use right now as this script is not running as part of the github release workflow
# if [ "$latest_release" = "v$version" ]; then
# echo "The latest release is the same as the version in package.json. Please update the version in package.json before running this script"
# exit 1
# fi


# ---
Expand Down
4 changes: 2 additions & 2 deletions src/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default class Init extends Command {
let ssh
let password
try {
;({ssh, password} = await connectSsh({host, username}))
;({ssh, password} = await connectSsh({host: sshHost, username}))
} catch {
this.error('could not connect to SSH')
}
Expand All @@ -96,7 +96,7 @@ export default class Init extends Command {
await setupRootSshAccess({ssh, password: passwordToUse, verbose})
username = 'root'
try {
;({ssh, password} = await connectSsh({host, username}))
;({ssh, password} = await connectSsh({host: sshHost, username}))
} catch {
this.error('could not connect to SSH as root')
}
Expand Down

0 comments on commit c9c2b18

Please sign in to comment.