Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 8511db40 authored by Nikita Sirgienko's avatar Nikita Sirgienko Committed by Albert Astals Cid

Fix bug with SAGE_ROOT

(cherry picked from commit 5d2c7c33)
parent 4d21416b
#!/usr/bin/env bash
ROOT="$($1 --root)"
SAGE_ROOT="$($1 --root)"
if [[ -f $ROOT"/bin/sage-env" ]]; then
. "$ROOT/bin/sage-env" >&2
elif [[ -f $ROOT"/src/bin/sage-env" ]]; then
. "$ROOT/src/bin/sage-env" >&2
if [[ -f $SAGE_ROOT"/bin/sage-env" ]]; then
. "$SAGE_ROOT/bin/sage-env" >&2
elif [[ -f $SAGE_ROOT"/src/bin/sage-env" ]]; then
. "$SAGE_ROOT/src/bin/sage-env" >&2
exit 1 # We have a problem
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment