Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
shellting / external / shelltings / shelltings-default-master / files / folder-exists.shellting
Size: Mime:
#!/usr/bin/env bash
#
# doc:
#   short_help: Sets an environment variable.
#
# args:
#   path:
#     doc:
#       short_help: The path to the folder.
#     type: string
#     required: true
#     cli:
#       param_type: argument
#


if [ -f "${path}" ]
then
  echo "Error: Path ${path} exists but is file"
  return 1
fi

if [ ! -d "${path}" ]
then
  mkdir -p "${path}"
else
  return 0
fi