From 2c4d2915e58cff5499b0743c8cb747268afb9a6b Mon Sep 17 00:00:00 2001 From: Janek Bevendorff Date: Thu, 17 Nov 2016 02:00:10 +0100 Subject: [PATCH] Fix regexp --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index d4f2ab3..9edf281 100755 --- a/install.sh +++ b/install.sh @@ -180,8 +180,8 @@ if [[ $MODE == "install" ]]; then else # Update command paths if upgrading from earlier version echo "Updating cp and rm command paths..." - sed -i "#/opt/bin/cp\$#/usr/bin/cp#" "$BKP_DIR"/etc/rsnapshot.global.conf - sed -i "#/opt/bin/rm\$#/usr/bin/rs-rm#" "$BKP_DIR"/etc/rsnapshot.global.conf + sed -i "s#/opt/bin/cp\$#/usr/bin/cp#" "$BKP_DIR"/etc/rsnapshot.global.conf + sed -i "s#/opt/bin/rm\$#/usr/bin/rs-rm#" "$BKP_DIR"/etc/rsnapshot.global.conf fi # Create symlink for chroot