Browse Source

add liquidprompt update already installed

Kyle Davis 7 years ago
parent
commit
b64335e71a
1 changed files with 13 additions and 3 deletions
  1. 13 3
      gimmes/liquidprompt

+ 13 - 3
gimmes/liquidprompt

@@ -1,8 +1,18 @@
 #!/bin/bash
 set -o errexit -o pipefail
 
-gimme git
-
 REPO_URL="https://github.com/nojhan/liquidprompt"
 REPO_DIR="$HOME/.liquidprompt"
-[[ -d "$REPO_DIR" ]]  ||  git clone "$REPO_URL" "$REPO_DIR"
+
+if ! [[ -d "$REPO_DIR" ]]; then
+
+	gimme git
+
+	git clone "$REPO_URL" "$REPO_DIR"
+
+else
+
+	cd "$REPO_DIR"
+	git pull
+
+fi