mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -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 function
|
||||||
json_list_sh() {
|
json_list_sh() {
|
||||||
shells=$(cat /etc/shells)
|
shells=$(grep -v '#' /etc/shells)
|
||||||
sh_counter=$(echo "$shells" | wc -l)
|
sh_counter=$(echo "$shells" | wc -l)
|
||||||
i=1
|
i=1
|
||||||
echo '['
|
echo '['
|
||||||
|
@ -35,7 +35,7 @@ json_list_sh() {
|
||||||
|
|
||||||
# Shell function
|
# Shell function
|
||||||
shell_list_sh() {
|
shell_list_sh() {
|
||||||
shells=$(cat /etc/shells)
|
shells=$(grep -v '#' /etc/shells)
|
||||||
if [ -z "$nohead" ]; then
|
if [ -z "$nohead" ]; then
|
||||||
echo "SHELLS"
|
echo "SHELLS"
|
||||||
echo "----------"
|
echo "----------"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue