aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Étienne Deparis 2017-06-07 13:09:45 +0200
committerGravatar Étienne Deparis 2017-06-07 13:09:45 +0200
commit787a22cfd638fae443b7f35b066d93e755957f4d (patch)
tree94c237bc13d040df9ffa7528583ebde604281370
parent03376dbf034a2a6375551730e5fbe7dd6173857f (diff)
downloadttydm-master.tar.gz
ttydm-master.tar.xz
ttydm-master.zip
Fix log outputHEADmaster
-rwxr-xr-xtty-dm5
1 files changed, 3 insertions, 2 deletions
diff --git a/tty-dm b/tty-dm
index efefe7c..a4748ac 100755
--- a/tty-dm
+++ b/tty-dm
@@ -33,7 +33,8 @@ ttydm_sessions_desc=("${ttydm_sessions_desc[@]}" "feeling nerdy…")
[ -f "$HOME/.config/ttydm/rc.sh" ] && . "$HOME/.config/ttydm/rc.sh"
[ "$ttydm_startxlog" != /dev/null -a -f "$ttydm_startxlog" ] && \
- cp "$ttydm_startxlog" "${ttydm_startxlog}.0"
+ cp "$ttydm_startxlog" "${ttydm_startxlog}.0" && \
+ rm "$ttydm_startxlog"
if [ "$ttydm_current_terminal" != "/dev/tty1" ]; then
@@ -68,7 +69,7 @@ TTYDM_XSESSION="${ttydm_sessions_exec[${ttydm_sessid}]}"
# Load generic profile
for file in "/etc/profile" "$HOME/.profile"; do
if [ -f "$file" ]; then
- echo "Loading profile from $file" > "$ttydm_startxlog"
+ echo "Loading profile from $file" >> "$ttydm_startxlog"
. "$file"
fi
done