mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
fix for debian/ubuntu
This commit is contained in:
parent
f7377b72e3
commit
e4da112048
1 changed files with 2 additions and 2 deletions
|
@ -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 "----------"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue