summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/oh-installfiles.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/oh-installfiles.sh b/src/oh-installfiles.sh
index 73a27a4..5598412 100644
--- a/src/oh-installfiles.sh
+++ b/src/oh-installfiles.sh
@@ -44,14 +44,14 @@ while [ ${#} -gt 0 ]; do
# Loop over lines in the 'install' file.
while read -r pattern; do
- for file in ${pattern}; do
+ for file in dest/${pattern}; do
# Ensure that the full directory path of the pattern exists in the
# package staging area.
- dir=$(dirname ${file})
+ dir=$(dirname ${file#dest/})
mkdir -p ${1}.data/${dir} || exit 1
# Move any matching files from the installation destination to the
# package staging area.
- mv dest/${file} ${1}.data/${dir} || exit 1
+ mv ${file} ${1}.data/${dir} || exit 1
done
done < ../${1}.pkg/install
shift