commit d14ebd9dd0fba640031f6389d2e44a169d820c34
parent ec4d12a8873389abf6defdaa5cc326a4d47eacc3
Author: St John Karp <contact@stjo.hn>
Date: Mon, 6 Jun 2022 04:23:12 -0400
svc: Fix missing slash in sed command
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/core/svc/build b/core/svc/build
@@ -3,8 +3,8 @@
# Fixes
find . -type f -exec grep -l '/bin/svc\.d' {} \+ |
xargs -I % sh -c "sed 's|/bin/svc\.d|/usr/bin/svc.d|g' % > _ && mv _ %"
-sed 's/PPID \$BIN/PPID \$SERVICE' svc.d/bare.sh > _
-mv _ svc.d/bare.sh
+sed 's/PPID \$BIN/PPID \$SERVICE/' svc.d/bare.sh > _
+mv -f _ svc.d/bare.sh
chmod +x svc.d/bare.sh
install -m 755 -D bin/service "$1/usr/bin/service"