summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/oh-installfiles.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/oh-installfiles.sh b/src/oh-installfiles.sh
index 8538d8f..c9abd36 100644
--- a/src/oh-installfiles.sh
+++ b/src/oh-installfiles.sh
@@ -54,7 +54,7 @@ main()
for file in "${dir}/"${pattern}; do
[ -e "${file}" -o -L "${file}" ] || continue
file="${file#${dir}}"
- mkdir -p "${pkg}.data/${file%/*}"
+ mkdir -p "${pkg}.data/${file%/?*}"
# TODO: If file, ln file. If dir, recursively mkdir and ln.
mv "${PWD}/${dir}/${file}" "${pkg}.data/${file}"
done