summaryrefslogtreecommitdiffstatshomepage
path: root/docker-machine/install
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2021-11-08 16:42:12 -0600
committerToby Vincent <tobyv13@gmail.com>2021-11-08 16:42:12 -0600
commit4cffe4db58ccdc08eeadbff0cc123caa010cd710 (patch)
tree7486731c97b11d04b665bbc31266160169ddba33 /docker-machine/install
parentddfc36b56f13024c59823a0f491d8b75e34d3fb2 (diff)
revert: removed unused configs; wrote new install script
Diffstat (limited to 'docker-machine/install')
-rwxr-xr-xdocker-machine/install30
1 files changed, 0 insertions, 30 deletions
diff --git a/docker-machine/install b/docker-machine/install
deleted file mode 100755
index 5bbd82c..0000000
--- a/docker-machine/install
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/usr/bin/env bash
-
-SCRIPT="docker-machine-installer"
-
-if docker compose >&/dev/null; then
- current_version=0.0.0
- echo "$SCRIPT: not installed"
-else
- current_version=$(docker-machine --version >&/dev/null | grep -oE '[0-9]+.[0-9\.]+')
- echo "$SCRIPT: found $current_version"
-fi
-
-# version=$(curl -s "https://api.github.com/repos/docker/machine/releases" | grep -oE '[0-9]+.[0-9\.]+')
-version="0.16.2"
-
-if [[ "$version" == "$current_version" ]]; then
- echo "$SCRIPT: up-to-date"
-else
- echo "$SCRIPT: new version found $version"
- echo "$SCRIPT: downloading..."
-
- arch="$(uname -s)-$(uname -m)"
- echo "https://github.com/docker/machine/releases/download/v$version/docker-machine-$arch"
-
- curl -L "https://github.com/docker/machine/releases/download/v$version/docker-machine-$arch" >/tmp/docker-machine &&
- chmod +x /tmp/docker-machine &&
- cp /tmp/docker-machine "${HOME}/.local/bin"
-
- echo "$SCRIPT: installed"
-fi