Correcting a live stream check. See HLS-6
Correcting a live stream check. See HLS-6

--- a/HLS-Stream-Creator.sh
+++ b/HLS-Stream-Creator.sh
@@ -291,7 +291,7 @@
 
 	      echo "Generating HLS segments for bitrate ${br}k - this may take some time"
 
-	      if [ "$NO_FORK" == "0" ] && [ ! "$LIVE_STREAM" == "1" ]
+	      if [ "$NO_FORK" == "0" ] || [ "$LIVE_STREAM" == "1" ]
 	      then
 		      # Processing Starts
 		      createStream "$PLAYLIST_NAME" "$OUT_NAME" "$BITRATE" &
@@ -306,7 +306,7 @@
 
       done
 
-      if [ "$NO_FORK" == "0" ] && [ ! "$LIVE_STREAM" == "1" ]
+      if [ "$NO_FORK" == "0" ] || [ "$LIVE_STREAM" == "1" ]
       then
 	    # Monitor the background tasks for completion
 	    echo "All transcoding processes started, awaiting completion"