From e4da11204881634c78829fabbe58e357fbd93730 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Tue, 9 Jul 2013 09:50:18 +0300 Subject: [PATCH] fix for debian/ubuntu --- bin/v-list-sys-shells | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/v-list-sys-shells b/bin/v-list-sys-shells index 227db0d0..091e7d8e 100755 --- a/bin/v-list-sys-shells +++ b/bin/v-list-sys-shells @@ -17,7 +17,7 @@ source $VESTA/func/main.sh # Json function json_list_sh() { - shells=$(cat /etc/shells) + shells=$(grep -v '#' /etc/shells) sh_counter=$(echo "$shells" | wc -l) i=1 echo '[' @@ -35,7 +35,7 @@ json_list_sh() { # Shell function shell_list_sh() { - shells=$(cat /etc/shells) + shells=$(grep -v '#' /etc/shells) if [ -z "$nohead" ]; then echo "SHELLS" echo "----------"