summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/pkg4
1 files changed, 2 insertions, 2 deletions
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
}