From 941a1c4a667fd2606edb7c6f365fdf1938b4f95e Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sun, 11 Mar 2012 20:20:17 -0400 Subject: [PATCH] update to rearrange name in case USER is blank, which apparently it can be. --- scripts/security/tell_zooty_our_ip.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/security/tell_zooty_our_ip.sh b/scripts/security/tell_zooty_our_ip.sh index 9c5b02a1..f227d790 100644 --- a/scripts/security/tell_zooty_our_ip.sh +++ b/scripts/security/tell_zooty_our_ip.sh @@ -17,7 +17,7 @@ if [ ! -z "$1" ]; then soundfile=$1 fi -ip_file="$(mktemp ${tempdir}/$(hostname | sed -e "s/\..*$//")_ip.XXXXXX)_${USER}" +ip_file="$(mktemp ${tempdir}/ip_${USER}_$(hostname | sed -e "s/\..*$//").XXXXXX)" # get live ip address pushd $tempdir @@ -38,5 +38,7 @@ cd gen put $ip_file $(hostname | sed -e "s/\..*$//")_ip.txt eof +\rm -f "$ip_file" + popd -- 2.34.1