Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Feb 6, 2024
1 parent e4101be commit 1affcd4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pi-image/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ fnm use --install-if-missing
fnm default $(fnm current)
corepack enable

# ensure some dependencies are installed
ensure_installed() {
if ! dpkg --verify "$1" 2>/dev/null; then
# Future: batch the installs, if there are multiple
apt-get install $1
fi
}
ensure_installed "wget"

# Run interactive version picker
yarn --cwd "pi-image/update-prompt" install
node "pi-image/update-prompt/main.js" $1 $2
Expand Down

0 comments on commit 1affcd4

Please sign in to comment.