【发布时间】:2018-06-09 03:04:15
【问题描述】:
我正在分析一个 shell 脚本,但我对下面的代码有点困惑。
谁能解释一下 return; 在这种情况下做了什么?
if [ -f "$BYPASS_EXISTING_NETWORK_TEST_FILE" ]; then
dloginfo "Skipping existing network test; mandated by configuration."
# Consume the file.
rm -f "$BYPASS_EXISTING_NETWORK_TEST_FILE"
return;
fi
【问题讨论】:
-
help return... -
请修正格式。