Page MenuHomeDevCentral

D3984.diff
No OneTemporary

D3984.diff

diff --git a/utils/install-arc.sh b/utils/install-arc.sh
--- a/utils/install-arc.sh
+++ b/utils/install-arc.sh
@@ -12,6 +12,35 @@
ARC_DIR=/opt/phabricator
BIN_DIR=/usr/local/bin
+# -------------------------------------------------------------
+# Dependencies
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+install_dependencies()
+{
+ if [ "$ID" = "debian" ] || [ "$ID_LIKE" = "debian" ]; then
+ apt install git php php-curl php-dom shellcheck
+ elif [ "$ID" = "freebsd" ]; then
+ echo pkg install git php83 php83-curl php83-dom hs-ShellCheck
+ elif [ "$ID" = "fedora" ]; then
+ dnf install git php php-dom shellcheck
+ elif [ "$ID" = "darwin" ]; then
+ brew install git php shellcheck
+ else
+ echo "Can't detect OS, add a condition or a new block in install_dependencies. ID: '$ID'."
+ fi
+}
+
+if [ -f /etc/os-release ]; then
+ . /etc/os-release
+elif command -v brew; then
+ # macOS doesn't use os-release, but we can still detect Homebrew
+ ID=darwin
+fi
+install_dependencies
+
+exit 0
+
# -------------------------------------------------------------
# Clone repositories
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

File Metadata

Mime Type
text/plain
Expires
Mon, Mar 2, 12:49 (13 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3487291
Default Alt Text
D3984.diff (1 KB)

Event Timeline