Skip to content

Commit

Permalink
🐛 debian not found curl command.
Browse files Browse the repository at this point in the history
  • Loading branch information
marchocode committed Feb 2, 2024
1 parent b75a4fa commit 6e8c857
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tiny-shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ if [[ ! -e ${WORKDIR} ]]; then

info "init package."
if [[ ${release} = "ubuntu" ]];then
apt-get -y install apt-transport-https ca-certificates curl wget gnupg > /dev/null
apt update > /dev/null && apt-get -y install apt-transport-https ca-certificates curl wget gnupg > /dev/null
elif [[ ${release} = "debian" ]];then
apt update > /dev/null && apt-get -y ca-certificates curl wget > /dev/null
else
info "Nothing to do."
fi

fi
Expand Down

0 comments on commit 6e8c857

Please sign in to comment.