summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xfetch.sh13
-rwxr-xr-xgit-sonar2
-rwxr-xr-xsonar-base.sh2
3 files changed, 2 insertions, 15 deletions
diff --git a/fetch.sh b/fetch.sh
deleted file mode 100755
index eed6960..0000000
--- a/fetch.sh
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/usr/bin/env bash
-
-if [[ "$OSTYPE" == *darwin* ]]; then
- READLINK_CMD='greadlink'
-else
- READLINK_CMD='readlink'
-fi
-
-dot="$(cd "$(dirname "$([ -L "$0" ] && $READLINK_CMD -f "$0" || echo "$0")")" || exit; pwd)"
-
-source "$dot/sonar-base.sh"
-
-fetch;
diff --git a/git-sonar b/git-sonar
index ecbf8b8..95d0626 100755
--- a/git-sonar
+++ b/git-sonar
@@ -93,7 +93,7 @@ while [[ $# -gt 0 ]];do
shift
if [[ "$command" == "--fetch" ]]; then
- nohup "$dot/fetch.sh" >/dev/null 2>&1 &
+ fetch >/dev/null 2>&1
fi
done
diff --git a/sonar-base.sh b/sonar-base.sh
index ed48726..d9c3312 100755
--- a/sonar-base.sh
+++ b/sonar-base.sh
@@ -168,7 +168,7 @@ fetch() {
if time_to_update "$FETCH_TIME"; then
record_timestamp
- git fetch --quiet > /dev/null 2>&1
+ nohup git fetch --quiet >/dev/null 2>&1 &
fi
}