From 47283afe3374205659d9268bcc858f5ec832217d Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 24 Feb 2009 11:31:05 +0100 Subject: pkg: vcs_fix_origin: Just check for the file --- bin/pkg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/pkg b/bin/pkg index 8a3f609..54f8b80 100755 --- a/bin/pkg +++ b/bin/pkg @@ -262,9 +262,9 @@ function vcs_status { # Set the correct origin function vcs_fix_origin { - if ! git remote | grep -F origin &> /dev/null; then + if [[ ! -f .git/remotes/origin ]] { git remote add origin $PKG_ROOT/$1 - fi + } git remote update &> /dev/null } -- cgit v1.2.3