Skip to content

Instantly share code, notes, and snippets.

@rcsheets
Created August 4, 2014 22:14
Show Gist options
  • Save rcsheets/a5c93454bf4e4f79626d to your computer and use it in GitHub Desktop.
Save rcsheets/a5c93454bf4e4f79626d to your computer and use it in GitHub Desktop.
if test -z "$1"
then
echo "No remote server specified"
else
if test -t 0
then
# do something interactive?
else
# do something noninteractive?
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment