mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-09-10 12:03:06 +02:00
in Linux build script check for missing files
This commit is contained in:
parent
71f1097544
commit
7447949cf0
1 changed files with 4 additions and 1 deletions
|
@ -316,7 +316,10 @@ function build_for () {
|
|||
local build_cmds=()
|
||||
local -A objs_dirs=()
|
||||
for src_file in $( echo "${all_src[@]}" ); do
|
||||
[[ -f "$src_file" ]] || continue
|
||||
[[ -f "$src_file" ]] || {
|
||||
echo "[X] file "$src_file" wasn't found" >&2;
|
||||
return 1;
|
||||
}
|
||||
|
||||
# https://stackoverflow.com/a/9559024
|
||||
local obj_dir=$( [[ -d "${src_file%/*}" ]] && echo "${src_file%/*}" || echo '.' )
|
||||
|
|
Loading…
Add table
Reference in a new issue