1
0
mirror of https://github.com/azlux/log2ram.git synced 2023-10-10 13:37:24 +02:00

install: Fixing code typo

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.
This commit is contained in:
Erwan Velu 2017-12-20 22:41:45 +01:00
parent 9ac0af973c
commit 737ffd1c19

View File

@ -16,7 +16,7 @@ then
chmod +x /etc/cron.hourly/log2ram chmod +x /etc/cron.hourly/log2ram
# Remove a previous log2ram version # Remove a previous log2ram version
if [ -d /var/log.hdd]; then if [ -d /var/log.hdd ]; then
rm -r /var/log.hdd rm -r /var/log.hdd
fi fi