From 8aa18f0e2c247f6bd46dabdeec90049f27c315c1 Mon Sep 17 00:00:00 2001 From: ds6 Date: Sun, 25 Feb 2018 06:27:39 -0600 Subject: [PATCH] fix some file redirects in hindsight .zprofile should probably be put in a cronjob to avoid affecting things run as the dotfile user before they log in, but doing that may go outside the scope of install.sh --- base/.zprofile | 4 ++-- install.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/base/.zprofile b/base/.zprofile index a129213..39abb7d 100644 --- a/base/.zprofile +++ b/base/.zprofile @@ -1,5 +1,5 @@ case "`uname`" in *BSD*) - mkdir -m 700 "/tmp/home-$LOGNAME" - unlink "$HOME/tmp" + mkdir -m 700 "/tmp/home-$LOGNAME" > /dev/null 2>&1 + unlink "$HOME/tmp" > /dev/null 2>&1 ln -sFh "/tmp/home-$LOGNAME" "$HOME/tmp";; esac diff --git a/install.sh b/install.sh index 496dfb8..41c019f 100755 --- a/install.sh +++ b/install.sh @@ -34,8 +34,8 @@ l() { # create preferred folder structure cd ~ mkdir -p bin etc share var/run var/log urxvt/ext > /dev/null 2>&1 -mkdir -m 700 var/tmp var/tmp/vim -[ -n "$bsd" ] && mkdir -m 700 tmp +mkdir -m 700 var/tmp var/tmp/vim > /dev/null 2>&1 +[ -n "$bsd" ] && mkdir -m 700 tmp > /dev/null 2>&1 cd - # link files -- 2.47.0