From a52911ba510e29f287cd32156065fa210179813c Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Thu, 4 Jul 2013 20:27:12 -0400 Subject: [PATCH] added a chown just to let user know if they don't own their own TMP. --- scripts/core/create_tempdir.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/core/create_tempdir.sh b/scripts/core/create_tempdir.sh index 5a13bb88..76a6f08d 100644 --- a/scripts/core/create_tempdir.sh +++ b/scripts/core/create_tempdir.sh @@ -21,6 +21,10 @@ word=Verified if [ ! -d "$TMP" ]; then mkdir $TMP word=Created + chown $USER $TMP + if [ $? -ne 0 ]; then + echo "failed to chown $TMP to user's ownership." + fi fi if [ -z "$LIGHTWEIGHT_INIT" ]; then echo "$word transient area \"$TMP\" for $USER on $(date_stringer)." >>$LOG_FILE -- 2.34.1