Skip to content

Apache Lucene open-source search software

SOLR-346: second attempt as first one didn't work

William Aua3cd72c830e0
diff --git a/src/scripts/snapinstaller b/src/scripts/snapinstaller
index 111ef37b2a3..9408f5493f3 100755
--- a/src/scripts/snapinstaller
+++ b/src/scripts/snapinstaller
@@ -110,7 +110,7 @@ logMessage started by $oldwhoami
logMessage command: $0 $@
# get directory name of latest snapshot
-name=`perl -e 'chdir q|${data_dir}|; print ((sort grep {/^snapshot[.][1-9][0-9]{13}$/} <*>)[-1])'`
+name=`perl -e 'chdir q|'${data_dir}'|; print ((sort grep {/^snapshot[.][1-9][0-9]{13}$/} <*>)[-1])'`
# clean up after INT/TERM
trap 'echo "caught INT/TERM, exiting now but partial installation may have already occured";/bin/rm -rf ${data_dir"/index.tmp$$;logExit aborted 13' INT TERM