Commit 10780c52 authored by fuyanbin's avatar fuyanbin
Browse files

fix: 判断文件是否存在

parent a685aaad
......@@ -87,9 +87,9 @@ build_image() {
popd
cp "$boot_dir"/init.rc "$packge_dir"/init.rc
rm -rf "$boot_dir"
if ! find_autostart -script_name preinstall.sh -initrc "$packge_dir"/init.rc > "$packge_dir"/find_autostart.log 2>/dev/null
if ! find_autostart -script_name preinstall.sh -initrc "$packge_dir"/init.rc -root_path "$build_dir" > "$packge_dir"/find_autostart.log 2>/dev/null
then
find_autostart -script_name recovery.sh -initrc "$packge_dir"/init.rc > "$packge_dir"/find_autostart.log 2>/dev/null
find_autostart -script_name recovery.sh -initrc "$packge_dir"/init.rc -root_path "$build_dir" > "$packge_dir"/find_autostart.log 2>/dev/null
fi
local auto_start_script
auto_start_script="$(cat "$packge_dir"/find_autostart.log)"
......
No preview for this file type
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment