Skip to content

Commit e4da112

Browse files
committed
fix for debian/ubuntu
1 parent f7377b7 commit e4da112

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/v-list-sys-shells

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ source $VESTA/func/main.sh
1717

1818
# Json function
1919
json_list_sh() {
20-
shells=$(cat /etc/shells)
20+
shells=$(grep -v '#' /etc/shells)
2121
sh_counter=$(echo "$shells" | wc -l)
2222
i=1
2323
echo '['
@@ -35,7 +35,7 @@ json_list_sh() {
3535

3636
# Shell function
3737
shell_list_sh() {
38-
shells=$(cat /etc/shells)
38+
shells=$(grep -v '#' /etc/shells)
3939
if [ -z "$nohead" ]; then
4040
echo "SHELLS"
4141
echo "----------"

0 commit comments

Comments
 (0)