aboutsummaryrefslogtreecommitdiffstats
path: root/feroxbuster/feroxbuster.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'feroxbuster/feroxbuster.SlackBuild')
-rw-r--r--feroxbuster/feroxbuster.SlackBuild11
1 files changed, 6 insertions, 5 deletions
diff --git a/feroxbuster/feroxbuster.SlackBuild b/feroxbuster/feroxbuster.SlackBuild
index fa3e812..b6e0134 100644
--- a/feroxbuster/feroxbuster.SlackBuild
+++ b/feroxbuster/feroxbuster.SlackBuild
@@ -100,11 +100,12 @@ offline = true
EOF
# On Slackware -stable the system cargo is too old to read the v4
-# Cargo.lock, so we build against rust-opt (installs under /opt). Source
-# its profile script to put the newer cargo first on PATH. On -current
-# the system rust is new enough and this file simply won't exist.
-if [ -r /etc/profile.d/rust-opt.sh ]; then
- . /etc/profile.d/rust-opt.sh
+# Cargo.lock, so we build against rust-opt, which installs its toolchain
+# under /opt/rust/bin (it ships no profile.d script). Put it first on
+# PATH when present. On -current the system rust is new enough and this
+# directory simply won't exist.
+if [ -x /opt/rust/bin/cargo ]; then
+ export PATH="/opt/rust/bin:$PATH"
fi
# Build release binary fully offline against the vendored crates.