浏览代码

Timeout the mount operation

Zachary Kotlarek 12 年之前
父节点
当前提交
282b78b30a
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      mountMedia

+ 1 - 1
mountMedia

@@ -55,7 +55,7 @@ if [ -z "${MEDIA}" ]; then
 	fi
 	if [ $LOCKED -eq 0 ]; then
 		echo $$ > "${LOCK}"
-		osascript -e 'tell application "Finder" to mount volume "smb://'"${REMOTE_USER}@${HOST}/${SHARE}"'"'
+		~/bin/video/timeout -t 30 osascript -e 'tell application "Finder" to mount volume "smb://'"${REMOTE_USER}@${HOST}/${SHARE}"'"'
 		sleep 5
 		rm -f "${LOCK}"
 	fi