sm-sorcery-bugs AT lists.ibiblio.org
Subject: Bugs for Sorcery are reported here
List archive
[SM-Sorcery-Bugs] [Bug 14304] New: better conditional sourcing needed in compile_config
- From: bugzilla-daemon AT bugs.sourcemage.org
- To: sm-sorcery-bugs AT lists.ibiblio.org
- Subject: [SM-Sorcery-Bugs] [Bug 14304] New: better conditional sourcing needed in compile_config
- Date: 11 Feb 2008 12:03:08 -0000
http://bugs.sourcemage.org/show_bug.cgi?id=14304
Summary: better conditional sourcing needed in compile_config
Product: Sorcery
Version: 1.13.x
Platform: Other
OS/Version: other
Status: NEW
Severity: major
Priority: P2
Component: subroutines
AssignedTo: sm-sorcery-bugs AT lists.ibiblio.org
ReportedBy: BearPerson AT gmx.net
the end of /etc/sorcery/compile_config currently reads
[ -x $LOCAL_COMPILE_CONFIG ] &&
. $LOCAL_COMPILE_CONFIG
two problems with this: -x checks for eXecutable'ness, you really want -e for
Existance (traditionally, this file is executable on most systems, but if
removed, sorcery will recreate it as non-executable)
Also, it should be a full if/then/fi, not the shorthand, so sourcing of the
file returns with a successful exit code even if the local config does not
exist.
In summary, it should read
if [ -e $LOCAL_COMPILE_CONFIG ] ;then
. $LOCAL_COMPILE_CONFIG
fi
--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
- [SM-Sorcery-Bugs] [Bug 14304] New: better conditional sourcing needed in compile_config, bugzilla-daemon, 02/11/2008
Archive powered by MHonArc 2.6.24.