diff --git a/src/shell/bash_functions b/src/shell/bash_functions index 865a663c..ab61f6bd 100755 --- a/src/shell/bash_functions +++ b/src/shell/bash_functions @@ -2,43 +2,6 @@ # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -# Clone a repository and install its dependencies. - -clone() { - - git clone "$1" \ - || return - - cd "$(basename "${1%.*}")" \ - || return - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Check if there are dependencies to be installed. - - if [ ! -f "package.json" ]; then - return - fi - - # Check if the project uses Yarn. - - if [ -f "yarn.lock" ] && command -v "yarn" $> /dev/null; then - printf "\n" - yarn install - return - fi - - # If not, assume it uses npm. - - if command -v "npm" $> /dev/null; then - printf "\n" - npm install - fi - -} - -# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Create data URI from a file. datauri() {