Created
February 5, 2018 23:13
-
-
Save ptflp/45a59caf327ddd6bc34fccdf83d329c6 to your computer and use it in GitHub Desktop.
preparing CMD for entry point
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 | |
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