Skip to content

Commit

Permalink
build/bin/sage-spkg: For spkg-check, fall back to PKG_SCRIPTS, not SA…
Browse files Browse the repository at this point in the history
…GE_ROOT
  • Loading branch information
Matthias Koeppe committed Feb 14, 2024
1 parent 7153e7c commit 460d88f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/bin/sage-spkg
Original file line number Diff line number Diff line change
Expand Up @@ -621,11 +621,11 @@ for script in $WRAPPED_SCRIPTS; do
# directory, and may be run later.
# For the installed *rm scripts, set their root directory to $SAGE_ROOT.
# For the installed check scripts, some need the temporary build directory,
# others don't. So try to run out of the temporary build directory
# but fall back to $SAGE_ROOT.
# others are OK with $PKG_SCRIPTS. So try to run out of the temporary
# build directory but fall back to the latter.
case $script in
check) script_dir="$(pwd)"
fallback_script_dir="\$SAGE_ROOT"
fallback_script_dir="$PKG_SCRIPTS"
;;
*rm) script_dir="\$SAGE_ROOT"
fallback_script_dir=
Expand Down

0 comments on commit 460d88f

Please sign in to comment.