@jswork/ushell-module-git 1.0.12 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/modules/01-gcd.sh CHANGED
@@ -2,12 +2,17 @@
2
2
  GIT_URL=$1;
3
3
  dir=`basename $GIT_URL .git`;
4
4
  orgname=`echo $GIT_URL | awk -F [:/] '{print$2}'`;
5
+ repourl=`echo $GIT_URL | awk -F [:/] '{print$1}'`;
5
6
 
6
7
  # A special case for nono `aric-` org.
7
8
  if [[ $orgname != "aric-"* ]]; then
8
9
  orgname="github";
9
10
  fi
10
11
 
12
+ if [[ $repourl == 'git@git.saybot.net' ]]; then
13
+ orgname="saybot";
14
+ fi
15
+
11
16
  localdir="$HOME/$orgname/$dir";
12
17
 
13
18
  # test local dir, if exists, cd to it and pull, else mkdir and clone
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jswork/ushell-module-git",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Unix like shell module for git.",
5
5
  "main": "index.sh",
6
6
  "repository": {