aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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