diff options
author | P. J. McDermott <pjm@nac.net> | 2012-10-09 21:34:13 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-10-09 21:34:13 (EDT) |
commit | eb1fe701a5c7a8fde1782a391daef30a7908e51c (patch) | |
tree | 13036da802a8065cde0295f04f29e819f9ce29ae | |
parent | 5c42b5e4fa5562616cddc7f18d368f147b04966b (diff) |
Skip patterns that match no pathnames.
-rw-r--r-- | src/oh-installfiles.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/oh-installfiles.sh b/src/oh-installfiles.sh index 3a19928..e91c26e 100644 --- a/src/oh-installfiles.sh +++ b/src/oh-installfiles.sh @@ -45,6 +45,7 @@ main() while IFS="${files_ifs}" read -r pattern; do for file in dest/${pattern}; do + [ -e "${file}" ] || continue file="${file#dest}" mkdir -p "${pkg}.data/${file%/*}" ln "${PWD}/dest/${file}" "${pkg}.data/${file}" |