Skip to content

Commit

Permalink
fix: 🐛 only require sudo privilege when installing
Browse files Browse the repository at this point in the history
  • Loading branch information
OnCloud125252 committed Apr 29, 2024
1 parent 67aa61b commit 1238190
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ app_name=cm
download_link=https://github.com/lazco-studio/Component-Manager/releases/latest/download/cm-cli_$target

function install() {
sudo -v
echo -e -n "${GREEN}"
sudo wget $download_link -q --show-progress --progress=bar:force -O /usr/local/bin/$app_name
echo -e -n "${NC}"
Expand All @@ -57,8 +58,6 @@ if [ -f /usr/local/bin/$app_name ]; then
read -n 1 -r
echo

sudo -v

if [[ $REPLY =~ ^[Yy]$ ]]; then
echo -e "${MAGENTA}${ROCKET} Updating ${BLUE}$app_name ${MAGENTA}...${NC}"
install
Expand Down

0 comments on commit 1238190

Please sign in to comment.