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 | |
# A script that automates package installations pulled with git | |
#Check if git url is present, exit if not | |
if ! [[ $1 =~ .+\/.+\.git ]] | |
then | |
echo -e "fatal: You must specift a git repository\n" | |
echo "usage: git-script.sh <git-url>" | |
exit |