Update check.sh to remove duplicates
Closes #32 (closed)
This MR removes duplicates in check.sh
, therefore hindering one image to be built multiple times from the same commit.
It also fixes something that could have been a future issue. If e.g. the directory cc7-cms
would have a sub directory in it and a changed was pushed to that sub directory, then the old script would fail to build the cc7-cms
image. The fix of looping over dir_wo_duplicates
instead of file paths fixes that.