Kaydet (Commit) 03e537b5 authored tarafından Ali Rıza KESKİN's avatar Ali Rıza KESKİN

fix directory create

üst 71e7b2b2
...@@ -39,13 +39,14 @@ elif [[ $UID -ne 0 ]] ; then ...@@ -39,13 +39,14 @@ elif [[ $UID -ne 0 ]] ; then
echo "You must be root!" echo "You must be root!"
exit 1 exit 1
fi fi
if [[ -d "$sulin" ]] ; then if [[ -d "$1" ]] ; then
echo "$sulin already exist" echo "$1 already exist"
exit 1 exit 1
elif [[ -f "$sulin" ]] ; then elif [[ -f "$1" ]] ; then
echo "$sulin is a file. You must delete or move." echo "$1 is a file. You must delete or move."
exit 1 exit 1
fi fi
mkdir -p "$1"
while getopts -- ':r' OPTION; do while getopts -- ':r' OPTION; do
if [[ "$OPTION" == "r" ]] ; then if [[ "$OPTION" == "r" ]] ; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment