2.1 - improve logging output
This commit is contained in:
parent
17749d8ab4
commit
bbd7f6f95e
1 changed files with 5 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/with-contenv bash
|
||||
scriptVersion="2.1"
|
||||
scriptVersion="2.2"
|
||||
scriptName="Audio"
|
||||
|
||||
log () {
|
||||
|
@ -103,11 +103,7 @@ Configuration () {
|
|||
if [ ! -d /config/xdg ]; then
|
||||
mkdir -p /config/xdg
|
||||
fi
|
||||
processdownloadid="$(ps -A -o pid,cmd|grep "Audio.sh" | grep -v grep | head -n 1 | awk '{print $1}')"
|
||||
log "To kill script, use the following command:"
|
||||
log "kill -9 $processdownloadid"
|
||||
sleep 2
|
||||
|
||||
|
||||
if [ -z $topLimit ]; then
|
||||
topLimit=10
|
||||
fi
|
||||
|
@ -150,8 +146,9 @@ Configuration () {
|
|||
else
|
||||
audioBitrateText="${audioBitrate}k"
|
||||
fi
|
||||
fi
|
||||
|
||||
else
|
||||
audioBitrateText="$audioBitrate"
|
||||
fi
|
||||
log "Output bitrate: $audioBitrateText"
|
||||
|
||||
if [ "$requireQuality" == "true" ]; then
|
||||
|
|
Loading…
Reference in a new issue