summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Wadley2016-08-28 16:23:15 -0500
committerTom Wadley2016-08-28 16:23:15 -0500
commit94808357c608f3911a42326e64349a22d5067ba5 (patch)
tree3aeeb7463ad0ae5e3f97c25e99351d71f08f9fb0
parentb906701d6c6ed47e5bf0c6fd49841388f42e138f (diff)
downloadaur-94808357c608f3911a42326e64349a22d5067ba5.tar.gz
Convenience script: only set NVM_DIR if not already set
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD4
-rw-r--r--init-nvm.sh2
3 files changed, 6 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e7e86046a58..efb32330ea7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
# Generated by mksrcinfo v8
-# Tue Aug 23 22:09:43 UTC 2016
+# Sun Aug 28 21:22:32 UTC 2016
pkgbase = nvm-git
pkgdesc = Node Version Manager - Simple bash script to manage multiple active node.js versions (git sources)
- pkgver = 0.31.6.r0.g31c68ad
+ pkgver = 0.31.6.r5.g68bf935
pkgrel = 1
url = https://github.com/creationix/nvm
install = nvm-git.install
@@ -16,7 +16,7 @@ pkgbase = nvm-git
source = init-nvm.sh
source = install-nvm-exec
md5sums = SKIP
- md5sums = 1baa599ca9a724a42aff2bafb23a76ad
+ md5sums = b75a15a2cbe04e6203ebaf6103e90926
md5sums = 8f3c5b82f09636e9cf82d45d68c39cc6
pkgname = nvm-git
diff --git a/PKGBUILD b/PKGBUILD
index a76ee01a87a..f087882fd46 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Tom Wadley <tom@tomwadley.net>
pkgname=nvm-git
-pkgver=0.31.6.r0.g31c68ad
+pkgver=0.31.6.r5.g68bf935
pkgrel=1
pkgdesc="Node Version Manager - Simple bash script to manage multiple active node.js versions (git sources)"
url="https://github.com/creationix/nvm"
@@ -16,7 +16,7 @@ source=("$pkgname::git+https://github.com/creationix/nvm.git"
"init-nvm.sh"
"install-nvm-exec")
md5sums=('SKIP'
- '1baa599ca9a724a42aff2bafb23a76ad'
+ 'b75a15a2cbe04e6203ebaf6103e90926'
'8f3c5b82f09636e9cf82d45d68c39cc6')
pkgver() {
diff --git a/init-nvm.sh b/init-nvm.sh
index 90da3964fdf..3ef3fbf57d1 100644
--- a/init-nvm.sh
+++ b/init-nvm.sh
@@ -1,4 +1,4 @@
-export NVM_DIR="$HOME/.nvm"
+[ -z "$NVM_DIR" ] && export NVM_DIR="$HOME/.nvm"
source /usr/share/nvm/nvm.sh
source /usr/share/nvm/bash_completion
source /usr/share/nvm/install-nvm-exec