File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 16
16
#
17
17
#
18
18
# Modified scripts (with bugfixes and additional feature support):
19
- # Copyright (C) 2015-2016 Microway, Inc. All rights reserved.
19
+ # Copyright (C) 2015-2018 Microway, Inc. All rights reserved.
20
20
# http://www.microway.com
21
21
#
22
22
#
@@ -72,6 +72,14 @@ for (( i=0; i<100; i++ )); do
72
72
done
73
73
74
74
75
+ # In some environments, the HOME environment variable may not be set. Ensure
76
+ # that something sensible is in place before the user's shells start up.
77
+ if [[ -n " $HOME " ]]; then
78
+ export HOME=" $( cd ~ && pwd) "
79
+ fi
80
+ screen -S " $SCREENSESSION " -X setenv HOME " $HOME "
81
+
82
+
75
83
# If DISPLAY is set then send it to the screen session (for X11 forwarding)
76
84
if [[ -n " $DISPLAY " ]]; then
77
85
screen -S " $SCREENSESSION " -X unsetenv DISPLAY
You can’t perform that action at this time.
0 commit comments