瀏覽代碼

Whine less when media disappears

Zachary Kotlarek 11 年之前
父節點
當前提交
c51d2ca230
共有 1 個文件被更改,包括 5 次插入 和 0 次删除
  1. 5 0
      folderToMKV.sh

+ 5 - 0
folderToMKV.sh

@@ -1,5 +1,10 @@
 #!/bin/bash
 
+# Bail if media is not available
+if ! ~/bin/video/isMediaMounted; then
+	exit 0
+fi
+
 # Command line
 inFolder="${1}"
 if [ -z "${inFolder}" ] || [ ! -e "${inFolder}" ]; then