Skip to content

Instantly share code, notes, and snippets.

@ptflp
Created February 5, 2018 23:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ptflp/45a59caf327ddd6bc34fccdf83d329c6 to your computer and use it in GitHub Desktop.
Save ptflp/45a59caf327ddd6bc34fccdf83d329c6 to your computer and use it in GitHub Desktop.
preparing CMD for entry point
#!/bin/bash
if [ -d "$1" ]; then
if [ -L "$1" ]; then
echo "ITS A SYMLINK"
else
# It's a directory!
# Directory command goes here.
echo "Directory exists"
fi
else
echo "this file or folder doesnt exists"
fi
echo "$0 $1 $2 $3 $4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment