File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -52,14 +52,16 @@ initArch() {
52
52
53
53
# initOS discovers the operating system for this system.
54
54
initOS () {
55
- OS=$( uname | tr ' [:upper:] ' ' [:lower:] ' )
55
+ OS=$( uname -s )
56
56
57
57
case " $OS " in
58
58
# Msys support
59
- msys * ) OS=' windows' ;;
59
+ MSYS * ) OS=' windows' ;;
60
60
# Minimalist GNU for Windows
61
- mingw* ) OS=' windows' ;;
62
- darwin) OS=' macos' ;;
61
+ MINGW* ) OS=' windows' ;;
62
+ CYGWIN* ) OS=' windows' ;;
63
+ Darwin) OS=' macos' ;;
64
+ Linux) OS=' linux' ;;
63
65
esac
64
66
}
65
67
@@ -108,18 +110,18 @@ downloadFile() {
108
110
if
109
111
command -v curl > /dev/null 2>&1
110
112
then
111
- curl -L " $DOWNLOAD_URL " -o " $PLUGIN_TMP_FILE "
113
+ curl -sSf - L " $DOWNLOAD_URL " > " $PLUGIN_TMP_FILE "
112
114
elif
113
115
command -v wget > /dev/null 2>&1
114
116
then
115
- wget -q -O " $PLUGIN_TMP_FILE " " $DOWNLOAD_URL "
117
+ wget -q -O - " $DOWNLOAD_URL " > " $PLUGIN_TMP_FILE "
116
118
fi
117
119
}
118
120
119
121
# installFile verifies the SHA256 for the file, then unpacks and
120
122
# installs it.
121
123
installFile () {
122
- tar xvzf " $PLUGIN_TMP_FILE " -C " $HELM_TMP "
124
+ tar xzf " $PLUGIN_TMP_FILE " -C " $HELM_TMP "
123
125
HELM_TMP_BIN=" $HELM_TMP /diff/bin/diff"
124
126
echo " Preparing to install into ${HELM_PLUGIN_DIR} "
125
127
mkdir -p " $HELM_PLUGIN_DIR /bin"
You can’t perform that action at this time.
0 commit comments