From: Chris Koeritz Date: Mon, 12 Mar 2012 00:20:17 +0000 (-0400) Subject: update to rearrange name in case USER is blank, which apparently it X-Git-Tag: 2.140.90~1478 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=941a1c4a667fd2606edb7c6f365fdf1938b4f95e;p=feisty_meow.git update to rearrange name in case USER is blank, which apparently it can be. --- 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