Attempting to get stdout from scan

This commit is contained in:
James Barnsley
2020-02-13 16:59:35 +13:00
parent 571c857814
commit 2988f8f4a7
13 changed files with 46 additions and 46 deletions

View File

@ -27,9 +27,9 @@ elif [[ $1 = "restart" ]]; then
elif [[ $1 = "local_scan" ]]; then
if $IS_CONTAINER; then
SCAN="$(mopidy --config /config/mopidy.conf local scan)"
SCAN="$(mopidy --config /config/mopidy.conf local scan 2>&1)"
else
SCAN="$(sudo mopidyctl local scan)"
SCAN="$(sudo mopidyctl local scan 2>&1)"
fi
echo -e "${SCAN}"
@ -37,7 +37,7 @@ elif [[ $1 = "check" ]]; then
echo -e "Access permitted"
elif [[ $1 = "test" ]]; then
sleep 1
sleep 3
TEST=$(echo "Hello, this is your bash speaking. I was sleeping for 3 seconds. Is running a container: $IS_CONTAINER")
echo -e "${TEST}"