瀏覽代碼

Deal with dashes in file names

Zachary Kotlarek 13 年之前
父節點
當前提交
aab7364f4e
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      sync.sh

+ 1 - 1
sync.sh

@@ -41,7 +41,7 @@ DIFF="`echo "${DIFF}" | grep -v '\/\._' | grep -v '\/\.DS_Store$'`"
 # Choose the file/directory to sync
 FILE="`echo "${DIFF}" | head -n 1`"
 ACTION="`echo "${FILE}" | head -c 1`"
-FILE="`echo "${FILE}" | cut -d "${ACTION}" -f 2`"
+FILE="`echo "${FILE}" | cut -d "${ACTION}" -f 2-`"
 
 # Determine the action (i.e. copy to or delete from remote)
 if [ "${ACTION}" == '+' ]; then