Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
6cc10e3f4f | |||
4a1208942d |
@ -48,6 +48,8 @@ There are a few notable changes to this runtime:
|
|||||||
- User yes/no prompts will **always be YES**
|
- User yes/no prompts will **always be YES**
|
||||||
- Other user input will default to an empty string
|
- Other user input will default to an empty string
|
||||||
- Logs will not be captured
|
- Logs will not be captured
|
||||||
|
- Setting the environment variable `SCWRYPTS_GROUP_LOADER__[a-z_]\+` will source the file indicated in the variable (this allows custom groups without needing to modify the `config.zsh` directly)
|
||||||
|
- In GitHub actions, `*.scwrypts.zsh` groups are detected automatically from the `$GITHUB_WORKSPACE`; set `SCWRYPTS_GITHUB_NO_AUTOLOAD=true` to disable
|
||||||
|
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
@ -54,6 +54,19 @@ do
|
|||||||
[ -f "$GROUP_LOADER" ] && source "$GROUP_LOADER"
|
[ -f "$GROUP_LOADER" ] && source "$GROUP_LOADER"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
: \
|
||||||
|
&& [ ! "$SCWRYPTS_AUTODETECT_GROUP_BASEDIR" ] \
|
||||||
|
&& [ $GITHUB_WORKSPACE ] \
|
||||||
|
&& [ ! $SCWRYPTS_GITHUB_NO_AUTOLOAD ] \
|
||||||
|
&& SCWRYPTS_AUTODETECT_GROUP_BASEDIR="$GITHUB_WORKSPACE"
|
||||||
|
|
||||||
|
[ "$SCWRYPTS_AUTODETECT_GROUP_BASEDIR" ] && [ -d "$SCWRYPTS_AUTODETECT_GROUP_BASEDIR" ] && {
|
||||||
|
for GROUP_LOADER in $(find "$SCWRYPTS_AUTODETECT_GROUP_BASEDIR" -type f -name \*scwrypts.zsh)
|
||||||
|
do
|
||||||
|
[ -f "$GROUP_LOADER" ] && source "$GROUP_LOADER"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
[ $NO_EXPORT_CONFIG ] || __SCWRYPT=1 # arbitrary; indicates currently inside a scwrypt
|
[ $NO_EXPORT_CONFIG ] || __SCWRYPT=1 # arbitrary; indicates currently inside a scwrypt
|
||||||
true
|
true
|
||||||
|
Reference in New Issue
Block a user