Skip to content

Instantly share code, notes, and snippets.

@myles
Created November 24, 2010 19:49
Show Gist options
  • Save myles/714270 to your computer and use it in GitHub Desktop.
Save myles/714270 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Notice the '-d'
if [ -d ~/.bin-private ]; then
echo "Your private bin exists."
else
echo "Your private bin doesn't exists."
fi
# Notice the '-f'
if [ -f ~/.ssh/config ]; then
echo "You have configured SSH."
else
echo "You haven't configured SSH."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment