From 8e31d51740f5dae838eda8d5de388f0d7dba4684 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Tue, 24 Mar 2020 03:17:40 -0500 Subject: [PATCH] improve start ram script to use quotes --- start-ram.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/start-ram.sh b/start-ram.sh index ed853a3c..fcaaafda 100755 --- a/start-ram.sh +++ b/start-ram.sh @@ -6,11 +6,11 @@ else echo "This system does not have /dev/shm. Cannot use this script." exit 9; fi -ONIONR_HOME=$(mktemp -p /dev/shm/ -d -t onionr-XXXXXXXXXXX) +ONIONR_HOME="$(mktemp -p /dev/shm/ -d -t onionr-XXXXXXXXXXX)" export ONIONR_HOME echo "Onionr has been launched with a temporary home directory using /dev/shm. Note that the OS may still write to swap if applicable." echo "Future Onionr commands will use your set or default Onionr home directory, unless you set it to $ONIONR_HOME" echo "Ultimately, a live boot operating system such as Tails or Debian would be better for you to use." $(dirname $0)/onionr.sh start & disown sleep 2 -$(dirname $0)/onionr.sh open-home \ No newline at end of file +$(dirname $0)/onionr.sh open-home