forked from l-mb/sbd
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build: configure: validate configure options for paths
Previously we expanded path variables like: eval prefix="`eval echo ${prefix}`" Now, define a helper function expand_path_option for this, to improve readability and isolate the eval madness. The helper can also take the option default to reduce code duplication. Additionally, expand_path_option requires the expanded value to be a full path (i.e. start with a /), to perform some validation on user-supplied values.
- Loading branch information
Showing
1 changed file
with
47 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters