Github-CLI: wait for apt locks to be released

pull/899/head
Botspot 3 years ago
parent c22b11f454
commit ce8ac4bc9c

@ -14,6 +14,7 @@ rm -f gh*linux_armv6.deb
#download
wget -O gh.deb https://github.com/cli/cli/releases/download/v1.13.1/gh_1.13.1_linux_armv6.deb || error 'Failed to download github-cli!'
#install
"${DIRECTORY}/api" apt_lock_wait
sudo apt -fy install ./gh.deb || error "Failed to install gh!"
#clean up
rm -f gh.deb

@ -14,6 +14,7 @@ rm -f gh*linux_arm64.deb
#download
wget -O gh.deb https://github.com/cli/cli/releases/download/v1.13.1/gh_1.13.1_linux_arm64.deb || error 'Failed to download github-cli!'
#install
"${DIRECTORY}/api" apt_lock_wait
sudo apt -fy install ./gh.deb || error "Failed to install gh!"
#clean up
rm -f gh.deb

Loading…
Cancel
Save