@jswork/ushell-module-git 1.0.12 → 1.0.14

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.
Files changed (2) hide show
  1. package/modules/01-gcd.sh +12 -1
  2. package/package.json +1 -1
package/modules/01-gcd.sh CHANGED
@@ -2,10 +2,21 @@
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.
8
+
7
9
  if [[ $orgname != "aric-"* ]]; then
8
- orgname="github";
10
+ if [[ $orgname == "alo7i" ]]; then
11
+ orgname="aric-nono";
12
+ else
13
+ orgname="github";
14
+ fi
15
+ fi
16
+
17
+
18
+ if [[ $repourl == 'git@git.saybot.net' ]]; then
19
+ orgname="saybot";
9
20
  fi
10
21
 
11
22
  localdir="$HOME/$orgname/$dir";
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.14",
4
4
  "description": "Unix like shell module for git.",
5
5
  "main": "index.sh",
6
6
  "repository": {