From eb1fe701a5c7a8fde1782a391daef30a7908e51c Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 09 Oct 2012 21:34:13 -0400 Subject: Skip patterns that match no pathnames. --- 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}" -- cgit v0.9.1