Skip to content

Commit 44c84a2

Browse files
committed
Fixes #749 by adding empty string for backup file in sed
Sedon BSD Unix requires an argument for the -i switch. Unless you wanta backup file inemust add an empty string argument. Signed-off-by: Sven Strittmatter <sven.strittmatter@iteratec.com>
1 parent 60497d0 commit 44c84a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ ifdef NAME
154154
rsync -a ./.templates/new-scanner/ ./scanners/$(NAME) ; \
155155
echo "Copied template files to new directory ./scanners/$(NAME)"; \
156156
cd scanners/$(NAME) ; \
157-
find . -type f -exec sed -i 's/new-scanner/$(NAME)/g' {} + ; \
157+
find . -type f -exec sed -i '' 's/new-scanner/$(NAME)/g' {} + ; \
158158
mv "./templates/new-scanner-parse-definition.yaml" "templates/$(NAME)-parse-definition.yaml" ; \
159159
mv "./templates/new-scanner-scan-type.yaml" "templates/$(NAME)-scan-type.yaml" ;
160160
else

0 commit comments

Comments
 (0)