File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ verifyConfig () {
2828 fi
2929}
3030
31- RecyclarrProcess () {
31+ RecyclarrProcess () {
3232 # Configure Yaml with URL and API Key
3333 sed -i " s%arrUrl%$arrUrl %g" " /config/extended/recyclarr.yaml"
3434 sed -i " s%arrApi%$arrApiKey %g" " /config/extended/recyclarr.yaml"
@@ -40,10 +40,13 @@ RecyclarrProcess () {
4040 chmod 777 /config/extended/recyclarr-data
4141 fi
4242
43- # Run Recyclarr and capture the output
44- /recyclarr/recyclarr sync -c $recyclarrConfig --app-data /config/extended/recyclarr-data 2>&1 | while IFS= read -r line; do
45- echo " $( date " +%F %T" ) :: $scriptName :: $scriptVersion :: $line " | tee -a " $logfile "
46- done
43+ # Capture the output of the Recyclarr command
44+ recyclarr_output=$( /recyclarr/recyclarr sync -c $recyclarrConfig --app-data /config/extended/recyclarr-data 2>&1 )
45+
46+ # Log the output line by line
47+ while IFS= read -r line; do
48+ log " $line "
49+ done <<< " $recyclarr_output"
4750
4851 log " Complete"
4952}
You can’t perform that action at this time.
0 commit comments