carbs

Cem's Auto Rice Bootstrapping Scripts
git clone git://git.ckyln.com/carbs.git
Log | Files | Refs | README | LICENSE

commit ee1317e1b09788493b3a76c25918c8c9c66d38d2
parent 747b011d23597ccb8917869f8db38ff20b905f06
Author: Cem Keylan <cem@ckyln.com>
Date:   Mon,  7 Oct 2019 17:06:55 +0300

change git command to depth 1

Diffstat:
Mcarbs | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/carbs b/carbs @@ -103,7 +103,7 @@ read ans makeinstall() { cd /tmp dir="$(mktemp -d)" - git clone $1 $dir || die 'Could not clone git repo' + git clone --depth 1 $1 $dir || die 'Could not clone git repo' cd $dir make || die "Could not build $1" sudo make install || die "Could not install $1" @@ -171,7 +171,7 @@ sudouser() {\ dotfilesinstall() { cd /tmp dir="$(mktemp -d)" - git clone $1 $dir/repo + git clone --depth 1 $1 $dir/repo cp -rfT $dir/repo $targetdir rm $targetdir/README* $targetdir/LICENSE $targetdir/.git -rf $targetdir/screenshots } @@ -179,7 +179,7 @@ dotfilesinstall() { wallpaperinstall() { out ' Installing wallpapers' mkdir -p $targetdir/Pictures - git clone git://git.ckyln.com/Wallpapers $targetdir/Pictures/Wallpapers && msg 'Downloaded Wallpapers' || error 'Could not install wallpapers' + git clone --depth 1 git://git.ckyln.com/Wallpapers $targetdir/Pictures/Wallpapers && msg 'Downloaded Wallpapers' || error 'Could not install wallpapers' } keyboardset() {