-
-
Save gulafaran/d82984e8021d5def1372 to your computer and use it in GitHub Desktop.
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 | |
epicabs() { | |
package="$@" | |
fullpath="$(pwd)/$package" | |
if [ -d "$fullpath" ] ; then | |
cd "$fullpath" | |
git pull | |
cd .. | |
else | |
echo "Cloning from packages.git" | |
git clone -b packages/"$package" --single-branch git://projects.archlinux.org/svntogit/packages.git "$package" | |
if [ $? -eq 128 ] ; then | |
echo "Cloning from community.git" | |
git clone -b packages/"$package" --single-branch git://projects.archlinux.org/svntogit/community.git "$package" | |
fi | |
fi | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment