summaryrefslogtreecommitdiffstats
path: root/netset
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2018-05-21 08:28:04 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2018-05-21 08:28:04 +0200
commit82b74a39a15b94d292107c3efc1489f060c9443d (patch)
tree06a1ba48e35a909f833523010266df7904445b0a /netset
parentc476d413e5b1e655fe9453ef2382b4828476c473 (diff)
downloadbin-82b74a39a15b94d292107c3efc1489f060c9443d.zip
bin-82b74a39a15b94d292107c3efc1489f060c9443d.tar.gz
netset : sort profiles
Diffstat (limited to 'netset')
-rwxr-xr-xnetset2
1 files changed, 1 insertions, 1 deletions
diff --git a/netset b/netset
index 2ab1d90..747df16 100755
--- a/netset
+++ b/netset
@@ -11,7 +11,7 @@ then
echo "must be run as root"
exit 1
fi
-PROFILES=$($NETCTL list | sed 's/\*//')
+PROFILES=$($NETCTL list | sed 's/\*//' | sort)
select profile in $PROFILES
do
[ -z "$profile" ] && exit 0