improve start ram script to use quotes

This commit is contained in:
Kevin Froman 2020-03-24 03:17:40 -05:00
parent 1be08e09ef
commit 8e31d51740
1 changed files with 2 additions and 2 deletions

View File

@ -6,11 +6,11 @@ else
echo "This system does not have /dev/shm. Cannot use this script." echo "This system does not have /dev/shm. Cannot use this script."
exit 9; exit 9;
fi fi
ONIONR_HOME=$(mktemp -p /dev/shm/ -d -t onionr-XXXXXXXXXXX) ONIONR_HOME="$(mktemp -p /dev/shm/ -d -t onionr-XXXXXXXXXXX)"
export ONIONR_HOME 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 "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 "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." 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 $(dirname $0)/onionr.sh start & disown
sleep 2 sleep 2
$(dirname $0)/onionr.sh open-home $(dirname $0)/onionr.sh open-home