diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-06-19 20:57:02 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-06-19 20:57:02 -0300 |
commit | 1ec44361b8d1baaafa75e61ad7ae8eaed7bcb1f9 (patch) | |
tree | af034d9376738104ac491a9fd0b648151ada802d /metadot | |
parent | edb02f867489ff8fd5be1aee2f85ec821cc5fe79 (diff) | |
download | metadot-1ec44361b8d1baaafa75e61ad7ae8eaed7bcb1f9.tar.gz metadot-1ec44361b8d1baaafa75e61ad7ae8eaed7bcb1f9.tar.bz2 |
Default repo option
Diffstat (limited to 'metadot')
-rwxr-xr-x | metadot | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -36,6 +36,7 @@ BASENAME="`basename $0`" DOT="$DEST/.dotfiles" MODULES="$DOT/modules" BACKUPS="$DEST/.backups/$DATE" +DEFAULT="git://git.sarava.org/rhatto/dotfiles.git" # Backup a file function metadot_backup { @@ -118,7 +119,11 @@ elif [ "$OPT" == "backup" ]; then metadot_backup $1 elif [ "$OPT" == "clone" ]; then shift - if [ "`basename $1 .git`" == "dotfiles" ]; then + if [ "$1" == "default" ]; then + metadot_backup $DOT + git clone --recursive $DEFAULT $DOT + echo "Backups saved at $BACKUPS." + elif [ "`basename $1 .git`" == "dotfiles" ]; then metadot_backup $DOT git clone --recursive $1 $DOT echo "Backups saved at $BACKUPS." |