Skip to content

Commit

Permalink
Escape find for shell scripts
Browse files Browse the repository at this point in the history
cherry-picked from owncloud-docker/base#50
  • Loading branch information
tboerger authored and patrickjahns committed Jun 12, 2018
1 parent ed1b6f4 commit f1d81c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@

* Fixed
* Allow quotes and spaces for occ command [#46](https://github.com/owncloud-docker/base/issues/46)
* Escape shell scripts within find [#45](https://github.com/owncloud-docker/base/issues/45)
2 changes: 1 addition & 1 deletion rootfs/usr/local/bin/entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -eo pipefail
[[ "${DEBUG}" == "true" ]] && set -x

for FILE in $(find /etc/entrypoint.d -iname *.sh | sort)
for FILE in $(find /etc/entrypoint.d -iname \*.sh | sort)
do
source ${FILE}
done
Expand Down
2 changes: 1 addition & 1 deletion rootfs/usr/local/bin/owncloud
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -eo pipefail
[[ "${DEBUG}" == "true" ]] && set -x

for FILE in $(find /etc/owncloud.d -iname *.sh | sort)
for FILE in $(find /etc/owncloud.d -iname \*.sh | sort)
do
source ${FILE}
done

0 comments on commit f1d81c8

Please sign in to comment.