diff options
author | feng19 <feng_19@foxmail.com> | 2018-06-21 10:24:56 +0800 |
---|---|---|
committer | feng19 <feng_19@foxmail.com> | 2018-06-21 10:24:56 +0800 |
commit | 482718b8bf31024d919aabad1da2e9116411f2aa (patch) | |
tree | 1c693d007b98b0fc31a23aac19abbf94096ad9ef /src/rebar_utils.erl | |
parent | dc0f8b4d66d12c10ed4df85148b5e8ce13056f40 (diff) | |
parent | 38865da7ba01e7d5e60316e970f01959e85759ee (diff) |
Merge tag '3.6.0' into refresh_paths
Bump to 3.6.0
- Introduce support of add and del operations for overrides
- OTP-21 compatibility
- Bump cth_readable for OTP-21 compat
- upgrade relx to 3.25.0
- upgrade bbmustache to 1.5.0
- run compile provider in default namespace from bare compiling (fixes
hooks for mix builds)
- Resolve string vs list crashing rebar3 in erl_first_files
- Create ERLANG_LIB_*_erl_interface environment variables only if erl_interface exists
- Add hooks to the upgrade command
- Add --start-clean flag to rebar3 shell
- Auto-boot main app in OTP app project templates
- Use maps for child spec examples in templates
Diffstat (limited to 'src/rebar_utils.erl')
-rw-r--r-- | src/rebar_utils.erl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl index 604abb8..2ded481 100644 --- a/src/rebar_utils.erl +++ b/src/rebar_utils.erl @@ -73,7 +73,8 @@ list_dir/1, user_agent/0, reread_config/1, - get_proxy_auth/0]). + get_proxy_auth/0, + is_list_of_strings/1]). %% for internal use only @@ -919,3 +920,11 @@ get_proxy_auth() -> undefined -> []; {ok, ProxyAuth} -> ProxyAuth end. + +-spec rebar_utils:is_list_of_strings(term()) -> boolean(). +is_list_of_strings(List) when not is_list(hd(List)) -> + false; +is_list_of_strings(List) when is_list(hd(List)) -> + true; +is_list_of_strings(List) when is_list(List) -> + true. |