Skip to content
Snippets Groups Projects
Commit bbc0bc99 authored by Bob Mottram's avatar Bob Mottram
Browse files

Tidying

parent df942c46
No related branches found
No related tags found
No related merge requests found
......@@ -536,7 +536,7 @@ fi
cp -r /etc/${PROJECT_NAME}/* $TEMPBUILD_DIR
rm -rf $TEMPBUILD_DIR/vendor
chown -R "$CURR_USER": $TEMPBUILD_DIR
chown -R "$CURR_USER":"$CURR_USER" $TEMPBUILD_DIR
cd $TEMPBUILD_DIR || exit 24729847
if [[ $MINIMAL_INSTALL == "yes" ]]; then
......@@ -648,12 +648,12 @@ fi
for im in ${image_types[@]}
do
# shellcheck disable=SC2012,SC2086
no_of_files=$(ls -afq build/${PROJECT_NAME}*.${im} | wc -l)
if (( no_of_files > 0 )); then
no_of_files=$(ls -l build/${PROJECT_NAME}*.${im} | wc -l)
if [ "$no_of_files" -gt 0 ]; then
# shellcheck disable=SC2086
mv build/${PROJECT_NAME}*.${im} ${CURR_DIR}/
# shellcheck disable=SC2086
sudo chown "${CURR_USER}": ${CURR_DIR}/*.${im}
sudo chown "${CURR_USER}":"${CURR_USER}" ${CURR_DIR}/*.${im}
fi
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment