summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/oh-installfiles8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/oh-installfiles b/src/oh-installfiles
index 57a0246..ca52025 100644
--- a/src/oh-installfiles
+++ b/src/oh-installfiles
@@ -39,18 +39,18 @@ IFS='
while [ ${#} -gt 0 ]; do
printf 'oh-installfiles: Installing files for package "%s"...\n' "${1}"
- mkdir ${1}.data
- chmod 755 ${1}.data
+ mkdir ${1}.data || exit 1
+ chmod 755 ${1}.data || exit 1
# Loop over lines in the 'install' file.
while read -r pattern; do
# Ensure that the full directory path of the pattern exists in the
# package staging area.
pattern_dir=$(dirname ${pattern})
- mkdir -p ${1}.data/${pattern_dir}
+ mkdir -p ${1}.data/${pattern_dir} || exit 1
# Move any matching files from the installation destination to the
# package staging area.
- mv dest/${pattern} ${1}.data/${pattern_dir}
+ mv dest/${pattern} ${1}.data/${pattern_dir} || exit 1
done < ../${1}.pkg/install
shift
done