提交 766a45e6 编写于 作者: S Stefan Breunig

address shellcheck issues

上级 29ab2aad
......@@ -37,7 +37,7 @@ install_ruby() {
echo "WARNING: Might use OS-provided pkgs for the following: $ASDF_PKG_MISSING"
fi
apply_custom_patches $start_dir || exit 1
apply_custom_patches "$start_dir" || exit 1
local configure_options="$(construct_configure_options $install_path)"
# set in os_based_configure_options
......@@ -81,9 +81,11 @@ get_absolute_path() {
local rel_dir=$(dirname "$rel_path")
local rel_base=$(basename "$rel_path")
echo $(
cd "$start_dir"
cd "$rel_dir" 2>/dev/null && echo "$(pwd)/$rel_base" || echo "$rel_path"
(
cd "$start_dir" \
&& cd "$rel_dir" 2>/dev/null \
&& echo "$(pwd)/$rel_base" \
|| echo "$rel_path"
)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册