Don't break SCREENDIR.
authorIain Patterson <me@iain.cx>
Tue, 23 Mar 2010 16:58:55 +0000 (16:58 +0000)
committerIain Patterson <me@iain.cx>
Wed, 24 Mar 2010 15:17:18 +0000 (15:17 +0000)
Use $HOME not ~ as the directory name is quoted.

.profile.d/screen.bashrc

index beba505..c2b1014 100644 (file)
@@ -6,7 +6,7 @@ if [ $? = 0 ]; then
     if [ -n "$SUDO_USER" ]; then
       unset SCREENDIR
     else
-      export SCREENDIR="~/.screen/$HOSTNAME"
+      export SCREENDIR="$HOME/.screen/$HOSTNAME"
       mkdir -p "$SCREENDIR"
     fi
   fi