From 2c2f4550d9c4a85d17ffd983dbe5ca7b5e2204c6 Mon Sep 17 00:00:00 2001 From: Nicolas North Date: Sat, 7 Apr 2018 23:24:34 -0700 Subject: [PATCH] Fix $temp_dir var --- functions | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/functions b/functions index c8a24ec..fbecb89 100644 --- a/functions +++ b/functions @@ -382,8 +382,8 @@ perform_installation() { echo "${b}Finished installing dependencies.${x}" echo - mkdir -p $tls_dir - mkdir -p $tmp_dir + mkdir -p "$tls_dir" + mkdir -p "$temp_dir" ################################################################################ @@ -1350,9 +1350,9 @@ perform_installation() { /usr/sbin/service sslh stop &> /dev/null || true ssh_port="$(cat $os_base_dir/inception/ssh-port)" apt-get -y install libwrap0-dev libconfig8-dev || true - rm -r $tmp_dir/sslh &> /dev/null || true - git clone https://github.com/yrutschle/sslh $tmp_dir/sslh - ( cd $tmp_dir/sslh && make install && make && cp sslh-select /usr/local/sbin/sslh ) + rm -r "$temp_dir/sslh" &> /dev/null || true + git clone https://github.com/yrutschle/sslh "$temp_dir/sslh" + ( cd "$temp_dir/sslh" && make install && make && cp sslh-select /usr/local/sbin/sslh ) sed -i "s|this_ipv4-var|${this_ipv4}|g" $source_dir/conf/sslh/etc-sslh.cfg if [ $ipv6_avail = "y" ] then @@ -1370,7 +1370,7 @@ perform_installation() { chmod +x /etc/init.d/sslh update-rc.d sslh defaults systemctl daemon-reload - rm -r $tmp_dir/sslh + rm -r "$temp_dir/sslh" mkdir -p /var/run/sslh touch /var/run/sslh/sslh.pid service sslh restart || true