We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe5af9d commit 6b83669Copy full SHA for 6b83669
swiftly-install
@@ -15,11 +15,17 @@
15
set -eu
16
# Install script for Swiftly
17
# Usage: curl -fsSL https://swift.org/swiftly-install | sh
18
+
19
+if ! command -v curl >/dev/null 2>&1 || ! command -v ps >/dev/null 2>&1 || ! command -v tar >/dev/null 2>&1 ; then
20
+ echo "Missing one of more of the following programs: curl, ps, tar" >&2
21
+ exit 1
22
+fi
23
24
OS_NAME=$(uname -s)
25
OS_ARCH=$(uname -m)
-TMPDIR=$(mktemp -d)
26
+TEMP_DIR=$(mktemp -d)
27
-cd "${TMPDIR}"
28
+cd "${TEMP_DIR}"
29
30
case "$OS_NAME" in
31
"Linux")
0 commit comments