Skip to content

Instantly share code, notes, and snippets.

@matobaa
Created January 18, 2022 15:11
Show Gist options
  • Save matobaa/7732b5de46bf80fa58ebc89e910b8878 to your computer and use it in GitHub Desktop.
Save matobaa/7732b5de46bf80fa58ebc89e910b8878 to your computer and use it in GitHub Desktop.
if [ ! `which git` ]; then
read -p "git: command not found. install [y/N]? "
[ ! x${REPLY^} == xY ] && exit 1
[ `which yum` ] && yum install git # RHEL
[ `which apt` ] && sudo apt-get update && sudo apt-get install git # Debian
[ `which apk` ] && apk add git # Alpine
fi
git clone --config=core.autocflf=input https://github.com/redmine/redmine.git app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment