From 737ffd1c194b2849fdc4ac06b09b27ba88b849d3 Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Wed, 20 Dec 2017 22:41:45 +0100 Subject: [PATCH] install: Fixing code typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The last bracket shall not be glued to the directory. The actual code is generating a runtime error like the following : erwan@raspberrypi:~/download/log2ram $ sudo ./install.sh Created symlink /etc/systemd/system/sysinit.target.wants/log2ram.service → /etc/systemd/system/log2ram.service. ./install.sh: 19: [: missing ] ##### Reboot to activate log2ram ##### This patch simply adds the missing space to make this script work. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 32ce69d..f72b119 100644 --- a/install.sh +++ b/install.sh @@ -16,7 +16,7 @@ then chmod +x /etc/cron.hourly/log2ram # Remove a previous log2ram version - if [ -d /var/log.hdd]; then + if [ -d /var/log.hdd ]; then rm -r /var/log.hdd fi