Skip to content

Commit

Permalink
Reposition statement to appropriate place
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshub16 committed Jan 13, 2018
1 parent 3fc2afe commit 0b8864e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ password=""
save_for_reuse=""
profile_name=""


if [[ "$1" == "load" && "$2" == "" ]]; then
echo -ne "\e[1m \e[31mPlease provide a config! \e[0m"
echo
exit
fi

if [ "$1" == "load" ]; then
choice="set"

Expand Down Expand Up @@ -129,12 +136,6 @@ Tool to set up system wide proxy settings on Linux.
fi
fi

if [[ "$1" == "load" && "$2" == "" ]]; then
echo -ne "\e[1m \e[31mPlease provide a config! \e[0m"
echo
exit
fi

echo
echo -e " \e[0m\e[4m\e[33mEnter targets where you want to modify settings : \e[0m"
echo -e " |\e[36m 1 \e[0m| All of them ... Don't bother me"
Expand Down

0 comments on commit 0b8864e

Please sign in to comment.