-
-
Save commonquail/cdd81dac3deec72cf6c3 to your computer and use it in GitHub Desktop.
Start Spotify and Blockify from the command line if either is not running
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -o errexit | |
if ! ps -e | grep -q spotify | |
then | |
spotify > /dev/null 2>&1 & | |
fi | |
if ! ps -e | grep -q blockify-ui | |
then | |
python2 /home/mikkel/repos/blockify/blockify/blockifyui.py > /dev/null & | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment