skill-mix 0.1.0 → 0.2.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skill-mix",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "main": "dist/electron/main.js",
5
5
  "type": "module",
6
6
  "bin": {
@@ -150,12 +150,7 @@ fi
150
150
  if [ -d "$INSTALL_DIR/.git" ]; then
151
151
  echo "Updating skills-manager in $INSTALL_DIR"
152
152
  git -C "$INSTALL_DIR" fetch --depth 1 origin "$BRANCH"
153
- if git -C "$INSTALL_DIR" show-ref --verify --quiet "refs/heads/$BRANCH"; then
154
- git -C "$INSTALL_DIR" checkout "$BRANCH"
155
- else
156
- git -C "$INSTALL_DIR" checkout -b "$BRANCH" "origin/$BRANCH"
157
- fi
158
- git -C "$INSTALL_DIR" pull --ff-only origin "$BRANCH"
153
+ git -C "$INSTALL_DIR" checkout -B "$BRANCH" "origin/$BRANCH"
159
154
  else
160
155
  echo "Cloning skills-manager into $INSTALL_DIR"
161
156
  git clone --depth 1 --branch "$BRANCH" "$REPO_URL" "$INSTALL_DIR"