~ubuntu-branches/ubuntu/karmic/byobu/karmic

« back to all changes in this revision

Viewing changes to byobu-launcher

  • Committer: Bazaar Package Importer
  • Author(s): Dustin Kirkland
  • Date: 2009-10-01 21:43:41 UTC
  • mto: This revision was merged to the branch mainline in revision 36.
  • Revision ID: james.westby@ubuntu.com-20091001214341-aycp5m3myt61zls1
Tags: upstream-2.36
ImportĀ upstreamĀ versionĀ 2.36

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
        # Set window title
34
34
        printf "\033]0;${USER}@$(hostname) - ${PKG}\007"
35
35
        # Update ssh-agent socket
36
 
        [ -r "$SSH_AUTH_SOCK" ] && [ -w "$RUN" ] &&  ln -sf "$SSH_AUTH_SOCK" "$RUN/$PKG.ssh-agent"
 
36
        if [ -S "$SSH_AUTH_SOCK" ] && [ -w "$RUN" ]; then 
 
37
                rm -f "$RUN/$PKG.ssh-agent"
 
38
                ln -sf "$SSH_AUTH_SOCK" "$RUN/$PKG.ssh-agent"
 
39
        fi
37
40
        # Re-attach to existing session
38
41
        exec screen -xRR
39
42
fi