diff options
author | bobpaul <bobpaul@lappy486.(none)> | 2009-06-03 20:33:55 -0500 |
---|---|---|
committer | bobpaul <bobpaul@lappy486.(none)> | 2009-06-03 20:33:55 -0500 |
commit | a5e6e17fe183ce7b9fcfc353c1a608cb23e2e61b (patch) | |
tree | d9f86a323346357fc698629709f3a3e2ee01cfe1 /examples | |
parent | bcae0ddb8615d2d5de180b2c781dd2ddda9332c2 (diff) |
session.sh: backup rather than clearing existing session file
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/scripts/session.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/scripts/session.sh b/examples/scripts/session.sh index 6d2a64d..e2642c7 100755 --- a/examples/scripts/session.sh +++ b/examples/scripts/session.sh @@ -44,7 +44,7 @@ case $act in ;; "endsession" ) - echo -n "" > "$sessionfile" + mv "$sessionfile" "$sessionfile~" for fifo in $fifodir/uzbl_fifo_*; do if [ "$fifo" != "$thisfifo" ]; then echo "spawn $scriptfile endinstance" > "$fifo" |