forked from switnet/quick-jibri-installer
excalibur: minor shell fixes.
This commit is contained in:
parent
5ac6c8269a
commit
7de6201af6
|
@ -47,9 +47,9 @@ EXCAL_PORT_FILE="src/index.ts"
|
||||||
# Test for matches
|
# Test for matches
|
||||||
test_match() {
|
test_match() {
|
||||||
if grep -q "$1" "$2" ; then
|
if grep -q "$1" "$2" ; then
|
||||||
echo "It is possible to setup "$(basename $2)", continuing..."
|
echo "It is possible to setup $(basename "$2"), continuing..."
|
||||||
else
|
else
|
||||||
echo "It is not possible to setup "$(basename $2)", stopping here."
|
echo "It is not possible to setup $(basename "$2"), stopping here."
|
||||||
echo "Please report this to https://forge.switnet.net/switnet/quick-jibri-installer"
|
echo "Please report this to https://forge.switnet.net/switnet/quick-jibri-installer"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
@ -110,8 +110,8 @@ else
|
||||||
sed -i "/$PROS_MATCH3/i \\\n" "$PROSODY_FILE"
|
sed -i "/$PROS_MATCH3/i \\\n" "$PROSODY_FILE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Checking for "$(basename $MEET_CONF)" setup."
|
echo "Checking for $(basename "$MEET_CONF") setup."
|
||||||
if [ -z "$(sed -n '/whiteboard: {/,/},/p' $MEET_CONF)" ]; then
|
if [ -z "$(sed -n '/whiteboard: {/,/},/p' "$MEET_CONF")" ]; then
|
||||||
echo "No present configuration on current config.js file"
|
echo "No present configuration on current config.js file"
|
||||||
sed -i "/$CONFIG_MATCH1/i \\\n" "$MEET_CONF"
|
sed -i "/$CONFIG_MATCH1/i \\\n" "$MEET_CONF"
|
||||||
sed -i "/$CONFIG_MATCH1/i \ \ \ \ whiteboard: {" "$MEET_CONF"
|
sed -i "/$CONFIG_MATCH1/i \ \ \ \ whiteboard: {" "$MEET_CONF"
|
||||||
|
|
Loading…
Reference in New Issue