Skip to content

Commit

Permalink
Copy only xml files from customized firmware dir
Browse files Browse the repository at this point in the history
  • Loading branch information
TomMajor committed Jul 28, 2020
1 parent ee15640 commit b5ec083
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rc.d/jp-hb-devices-addon
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ case "$1" in
echo "Running scripts..." | tee -a $GLOBAL_LOGFILE
for f in ${ADDON_DIR}/install_* ; do echo " - $(basename $f)"; ./$(basename $f) >> $GLOBAL_LOGFILE 2>>$GLOBAL_ERRFILE; done

if [ "$(ls -A $CUSTOMIZED_FIRMWARE_DIR)" ]; then
if [ "$(find ${CUSTOMIZED_FIRMWARE_DIR} -type f -iname '*.xml')" ]; then
echo "Copying customized firmware files..." | tee -a $GLOBAL_LOGFILE
cp ${CUSTOMIZED_FIRMWARE_DIR}/* ${ADDON_DIR}${FIRMWARE_DIR}/
cp ${CUSTOMIZED_FIRMWARE_DIR}/*.xml ${ADDON_DIR}${FIRMWARE_DIR}/
else
echo "No customized firmware files found in ${CUSTOMIZED_FIRMWARE_DIR}." | tee -a $GLOBAL_LOGFILE
fi
Expand Down

0 comments on commit b5ec083

Please sign in to comment.