Use bash
This commit is contained in:
parent
d99ea68211
commit
d80ef70c67
|
@ -93,7 +93,7 @@ function mesh_babel {
|
||||||
|
|
||||||
babel_script=/tmp/babel
|
babel_script=/tmp/babel
|
||||||
|
|
||||||
echo '#!/bin/sh' > $babel_script
|
echo '#!/bin/bash' > $babel_script
|
||||||
echo '' >> $babel_script
|
echo '' >> $babel_script
|
||||||
echo 'if [[ $1 == "ls" || $1 == "list" ]]; then' >> $babel_script
|
echo 'if [[ $1 == "ls" || $1 == "list" ]]; then' >> $babel_script
|
||||||
echo ' avahi-browse --all' >> $babel_script
|
echo ' avahi-browse --all' >> $babel_script
|
||||||
|
@ -160,7 +160,7 @@ function mesh_batman {
|
||||||
|
|
||||||
batman_script=/tmp/batman
|
batman_script=/tmp/batman
|
||||||
|
|
||||||
echo '#!/bin/sh' > $batman_script
|
echo '#!/bin/bash' > $batman_script
|
||||||
echo '' >> $batman_script
|
echo '' >> $batman_script
|
||||||
echo 'if [[ $1 == "start" ]]; then' >> $batman_script
|
echo 'if [[ $1 == "start" ]]; then' >> $batman_script
|
||||||
echo ' # install avahi' >> $batman_script
|
echo ' # install avahi' >> $batman_script
|
||||||
|
|
Loading…
Reference in New Issue