]> arthur.barton.de Git - backup-script.git/commitdiff
Makefile: Properly quote path, user and group names
authorAlexander Barton <alex@barton.de>
Tue, 22 Nov 2022 09:44:03 +0000 (10:44 +0100)
committerAlexander Barton <alex@barton.de>
Tue, 22 Nov 2022 09:44:03 +0000 (10:44 +0100)
Makefile
bin/Makefile

index 1f09876b085d0242ba714f13fee847ed16f1720d..fcb1d3ade3b1a021675b2a8e3586ab39ef0c2f0b 100644 (file)
--- 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"
index 3162e4f3cbb1ba9a2de47bfef04d6e671c610827..b25ef668d15c32fa0155a975cb01e7c01925b568 100644 (file)
@@ -1,21 +1,21 @@
 #
 # backup-script system for cloning systems using rsync
-# Copyright (c)2008-2017 Alexander Barton <alex@barton.de>
+# Copyright (c)2008-2022 Alexander Barton <alex@barton.de>
 #
 
 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