From: Alexander Barton Date: Tue, 22 Nov 2022 09:44:03 +0000 (+0100) Subject: Makefile: Properly quote path, user and group names X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9fe45f11287e32bdf798407273f68549ad0a419;hp=81c39f7ce18885e81e1145cf39ceb2c078d61178;p=backup-script.git Makefile: Properly quote path, user and group names --- diff --git a/Makefile b/Makefile index 1f09876..fcb1d3a 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # # backup-script system for cloning systems using rsync -# Copyright (c)2008-2014 Alexander Barton, alex@barton.de +# Copyright (c)2008-2022 Alexander Barton, alex@barton.de # SUBDIRS = bin etc examples @@ -8,5 +8,5 @@ SUBDIRS = bin etc examples include ./lib/Makefile.ax install-local: - install -d -o $(USER) -g $(GROUP) -m 755 \ - $(DESTDIR)$(PREFIX)/etc/backup-script.d + install -d -o "$(USER)" -g "$(GROUP)" -m 755 \ + "$(DESTDIR)$(PREFIX)/etc/backup-script.d" diff --git a/bin/Makefile b/bin/Makefile index 3162e4f..b25ef66 100644 --- a/bin/Makefile +++ b/bin/Makefile @@ -1,21 +1,21 @@ # # backup-script system for cloning systems using rsync -# Copyright (c)2008-2017 Alexander Barton +# Copyright (c)2008-2022 Alexander Barton # include ../lib/Makefile.ax install-local: - install -d -o $(USER) -g $(GROUP) -m 755 \ - $(DESTDIR)$(PREFIX)/sbin - install -o $(USER) -g $(GROUP) -m 755 backup-script \ - $(DESTDIR)$(PREFIX)/sbin/backup-script - install -o $(USER) -g $(GROUP) -m 755 backup-script-wrapper \ - $(DESTDIR)$(PREFIX)/sbin/backup-script-wrapper - install -o $(USER) -g $(GROUP) -m 755 backup-status \ - $(DESTDIR)$(PREFIX)/sbin/backup-status - install -o $(USER) -g $(GROUP) -m 755 backup-audit \ - $(DESTDIR)$(PREFIX)/sbin/backup-audit + install -d -o "$(USER)" -g "$(GROUP)" -m 755 \ + "$(DESTDIR)$(PREFIX)/sbin" + install -o "$(USER)" -g "$(GROUP)" -m 755 backup-script \ + "$(DESTDIR)$(PREFIX)/sbin/backup-script" + install -o "$(USER)" -g "$(GROUP)" -m 755 backup-script-wrapper \ + "$(DESTDIR)$(PREFIX)/sbin/backup-script-wrapper" + install -o "$(USER)" -g "$(GROUP)" -m 755 backup-status \ + "$(DESTDIR)$(PREFIX)/sbin/backup-status" + install -o "$(USER)" -g "$(GROUP)" -m 755 backup-audit \ + "$(DESTDIR)$(PREFIX)/sbin/backup-audit" check-local: ./backup-script --help 2>&1 | grep -F 'Usage: ' >/dev/null