projects
/
grml-scripts-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3194cd2
)
grml-screen: do not use & for redirecting output since it is running inside dash.
author
Michael Prokop
<mika@grml.org>
Wed, 6 Jul 2011 14:19:06 +0000
(16:19 +0200)
committer
Michael Prokop
<mika@grml.org>
Wed, 6 Jul 2011 14:19:06 +0000
(16:19 +0200)
usr_bin/grml-screen
patch
|
blob
|
history
diff --git
a/usr_bin/grml-screen
b/usr_bin/grml-screen
index
91cedce
..
b455b62
100755
(executable)
--- a/
usr_bin/grml-screen
+++ b/
usr_bin/grml-screen
@@
-17,9
+17,9
@@
# try to mitigate raceconditions from screen
SCREENDIR_="/var/run/screen"
if [ `id -u` = 0 ] ; then
- mkdir -m 755 $SCREENDIR_
&>/dev/null
&& chgrp utmp $SCREENDIR_
+ mkdir -m 755 $SCREENDIR_
>/dev/null 2>& 1
&& chgrp utmp $SCREENDIR_
fi
-mkdir -m 700 "${SCREENDIR_}/S-$USER"
&>/dev/null
+mkdir -m 700 "${SCREENDIR_}/S-$USER"
>/dev/null 2>&1
# now run screen with config
cd $HOME # important for e.g. hardcopy-feature