summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. 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)
commiteb1fe701a5c7a8fde1782a391daef30a7908e51c (patch)
tree13036da802a8065cde0295f04f29e819f9ce29ae /src
parent5c42b5e4fa5562616cddc7f18d368f147b04966b (diff)
Skip patterns that match no pathnames.
Diffstat (limited to 'src')
-rw-r--r--src/oh-installfiles.sh1
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}"