Skip to content

Commit

Permalink
Merge pull request #6 from itzjonas/master
Browse files Browse the repository at this point in the history
Updating user experience.
  • Loading branch information
baens committed Feb 14, 2017
2 parents 1d3dcb3 + 47b833b commit ce796c7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
9 changes: 7 additions & 2 deletions bin/psproxy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ show State:/Network/Service/net.pulsesecure.pulse.nc.main/IPv4
quit
EOF`
GR='\033[0;32m'
YL='\033[1;33m'
NC='\033[0m' # No Color
serviceKey=`echo $pulseSecureState | sed -n "s/.*DSUnderlyingServiceName : \([^']*\) }.*/\1/p"`
Expand All @@ -24,6 +27,7 @@ if [ $1 == "on" ]; then
set State:/Network/Service/net.pulsesecure.pulse.nc.main/Proxies
quit
EOF`
echo "${GR}Done!${NC}"
elif [ $1 == "off" ]; then
echo
Expand All @@ -37,11 +41,12 @@ elif [ $1 == "off" ]; then
set State:/Network/Service/net.pulsesecure.pulse.nc.main/Proxies
quit
EOF`
echo "${GR}Done!${NC}"
else
echo
echo "Execute 'psproxy on' to enable the proxy settings"
echo "Execute 'psproxy off' to disable the proxy settings"
echo "Execute ${YL}'sudo psproxy on'${NC} to enable the proxy settings"
echo "Execute ${YL}'sudo psproxy off'${NC} to disable the proxy settings"
exit
fi
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "psproxy",
"version": "2.0.1",
"description": "Executable for enablling or disabling proxy settings for Junos Pulse Secure VPN",
"version": "2.0.2",
"description": "Executable for enabling or disabling proxy settings for Junos Pulse Secure VPN",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand All @@ -12,7 +12,8 @@
},
"keywords": [
"pulse-secure",
"juniper"
"juniper",
"charles"
],
"author": "majgis",
"license": "ISC",
Expand Down

0 comments on commit ce796c7

Please sign in to comment.