Skip to content

Commit

Permalink
only delete file that exist
Browse files Browse the repository at this point in the history
  • Loading branch information
jp112sdl committed Nov 3, 2021
1 parent 7c4850e commit ef9f57a
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 @@ -294,8 +294,8 @@ case "$1" in

#delete copied files
cd ${ADDON_DIR}/www
find . -type f | sed 's/^./\/www/' | xargs rm

find . -type f | sed 's/^./\/www/' | xargs -I {} sh -c '[[ -f {} ]] && rm {}'
cd /

rm -f ${WWW_DIR}
Expand Down

0 comments on commit ef9f57a

Please sign in to comment.