summaryrefslogtreecommitdiffstats
path: root/coin/provisioning/common/macos/pip.sh
diff options
context:
space:
mode:
Diffstat (limited to 'coin/provisioning/common/macos/pip.sh')
-rwxr-xr-xcoin/provisioning/common/macos/pip.sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/coin/provisioning/common/macos/pip.sh b/coin/provisioning/common/macos/pip.sh
index c9af5fbc..2d07db85 100755
--- a/coin/provisioning/common/macos/pip.sh
+++ b/coin/provisioning/common/macos/pip.sh
@@ -1,5 +1,11 @@
#!/usr/bin/env bash
-# Will install pip utility for python
-curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
-sudo python get-pip.py
-rm get-pip.py
+
+function InstallPip {
+
+ python=$1
+
+ # Will install pip utility for python
+ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
+ sudo "$python" get-pip.py
+ rm get-pip.py
+}