sayem314 / Caddy-Web-Server-Installer

Script to manage Caddy web server
MIT License
210 stars 86 forks source link

small code cleanup #17

Closed Bitti09 closed 6 years ago

Bitti09 commented 6 years ago

removed duplicate command lookups


This change is Reviewable

sayem314 commented 6 years ago

Executing +# Command paths everytime is unnecessary. It is only required when caddy install/update command is used. Beside APT_GET_CMD=$(which apt-get) output error on CentOS.

I appreciate your help. If possible re-pull with my suggestion.