Skip to content

Commit

Permalink
Generated from base-vm
Browse files Browse the repository at this point in the history
Generate.yml committed Jan 14, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 784edc3 commit c31d228
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
@@ -30,10 +30,14 @@ export VM_RELEASE
confname=$VM_RELEASE


if [ "$VM_ARCH" = "x86_64" ]; then
if [ "$VM_ARCH" = "x86_64" ] || [ "$VM_ARCH" = "amd64" ]; then
VM_ARCH=""
fi

if [ "$VM_ARCH" = "arm64" ]; then
VM_ARCH="aarch64"
fi

if [ "$VM_ARCH" ]; then
confname=$VM_RELEASE-$VM_ARCH
fi
@@ -315,7 +319,9 @@ EOF
onStarted() {
bash $vmsh addSSHHost $osname "$_idfile"
#just touch the file, so that the user can access this file in the VM
echo "" >>${GITHUB_ENV}
if [ "${GITHUB_ENV}" ]; then
echo "" >>${GITHUB_ENV}
fi
if [ -e "hooks/onStarted.sh" ]; then
ssh "$osname" sh <hooks/onStarted.sh
fi

0 comments on commit c31d228

Please sign in to comment.