Skip to content

Commit 7a169ed

Browse files
committed
Allow install script to be run relatively and no-pager systemctl
1 parent a561081 commit 7a169ed

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
set -v
55

6-
install -m700 ./snapper2borg.sh /usr/local/bin/
7-
install -m644 ./snapper2borg.service /etc/systemd/system/
6+
install -m700 "${0%/*}/snapper2borg.sh" /usr/local/bin/
7+
install -m644 "${0%/*}/snapper2borg.service" /etc/systemd/system/
88

99
systemctl daemon-reload
1010
systemctl enable snapper2borg.service
11-
systemctl status snapper2borg.service
11+
systemctl --no-pager status snapper2borg.service

0 commit comments

Comments
 (0)