Created
October 30, 2014 17:03
-
-
Save anonymous/da87726667e8cf3b622d to your computer and use it in GitHub Desktop.
This file contains hidden or 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