Skip to content

Instantly share code, notes, and snippets.

@mumixam
Last active June 8, 2016 23:48
Show Gist options
  • Save mumixam/752fb9928e56e21390f6eb5e339bc350 to your computer and use it in GitHub Desktop.
Save mumixam/752fb9928e56e21390f6eb5e339bc350 to your computer and use it in GitHub Desktop.
#!/bin/bash
WEEPATH="/home/mumixam/.weechat"
if [ -z "$(ls $WEEPATH | grep ".upgrade$")" ]; then
/usr/bin/screen -dmS weechat weechat
else
/usr/bin/screen -dmS weechat weechat --upgrade
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment