Commit 073c6225 authored by Paul Cammish's avatar Paul Cammish
Browse files

Changes to prevent null strings

parent e705148e
......@@ -6,7 +6,7 @@
#
# Determine the location of the lock file from the default config.
LOCK="$(grep '^BACKUP_DIR=\|^VOLNAME=' /etc/backup2l.conf | sed 's|.*="||' | tr -d '\n' | sed -e 's|"|/|1' -e 's|"|.lock|')"
LOCK="$(grep '^BACKUP_DIR=\|^VOLNAME=' /etc/backup2l.conf | sed 's|.*="||' | tr -d '\n' | sed -e 's|"|/|1' -e 's|"||').lock"
# If it exists, then move it out of the way for now.
if [ -f ${LOCK} ]; then
......
......@@ -6,7 +6,7 @@
#
# Determine the location of the lock file from the default config.
LOCK="$(grep '^BACKUP_DIR=\|^VOLNAME=' /etc/backup2l.conf | sed 's|.*="||' | tr -d '\n' | sed -e 's|"|/|1' -e 's|"|.lock|')"
LOCK="$(grep '^BACKUP_DIR=\|^VOLNAME=' /etc/backup2l.conf | sed 's|.*="||' | tr -d '\n' | sed -e 's|"|/|1' -e 's|"||').lock"
# If it exists, then move it back where it came from.
if [ -f ${LOCK}_disabled ]; then
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment