We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7377b7 commit e4da112Copy full SHA for e4da112
bin/v-list-sys-shells
@@ -17,7 +17,7 @@ source $VESTA/func/main.sh
17
18
# Json function
19
json_list_sh() {
20
- shells=$(cat /etc/shells)
+ shells=$(grep -v '#' /etc/shells)
21
sh_counter=$(echo "$shells" | wc -l)
22
i=1
23
echo '['
@@ -35,7 +35,7 @@ json_list_sh() {
35
36
# Shell function
37
shell_list_sh() {
38
39
if [ -z "$nohead" ]; then
40
echo "SHELLS"
41
echo "----------"
0 commit comments