mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
Use shell conditionals appropriately
This commit is contained in:
@@ -3,13 +3,10 @@
|
||||
echo 'Removing all Firezone configuration data...'
|
||||
firezone-ctl cleanse yes
|
||||
|
||||
apt=`which apt-get`
|
||||
yum=`which yum`
|
||||
|
||||
echo 'Removing firezone package...'
|
||||
if [ -f $apt ]; then
|
||||
if type apt-get > /dev/null; then
|
||||
apt-get remove -y --purge firezone
|
||||
elif [ -f $yum ]; then
|
||||
elif type yum > /dev/null; then
|
||||
yum remove -y firezone
|
||||
else
|
||||
echo 'apt-get or yum not found'
|
||||
|
||||
Reference in New Issue
Block a user