Skip to content

Commit

Permalink
suppress warning when dependency-override.repos does not exist
Browse files Browse the repository at this point in the history
DCO 1.1 Signed-off-by: Tatsuya Ishihara <[email protected]>
  • Loading branch information
tatsuya-ishihara committed Feb 13, 2025
1 parent 4654aa3 commit 4bb6691
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions setup-dependency.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,22 +65,22 @@ while getopts "hcdn:or" arg; do
c)
clean=1
;;
d)
development=1
;;
d)
development=1
;;
n)
count=$OPTARG
;;
o)
override=1
;;
o)
override=1
;;
r)
release=1
;;
*)
help
exit
;;
*)
help
exit
;;
esac
done

Expand Down Expand Up @@ -134,12 +134,13 @@ do

temp_file=$(mktemp)
echo "Temporary file created: $temp_file"
if [[ $override -eq 1 ]]; then
cat $line > $temp_file
cat ${line/.repos/-override.repos} | sed s/repositories:// >> $temp_file
else
cat $line > $temp_file
fi
cat $line > $temp_file
if [[ $override -eq 1 ]]; then
override_file=${line/.repos/-override.repos}
if [[ -e $override_file ]]; then
cat $override_file | sed s/repositories:// >> $temp_file
fi
fi
blue "$(dirname $line)/ vcs import < $temp_file"
pushd $(dirname $line)
vcs import < $temp_file
Expand Down

0 comments on commit 4bb6691

Please sign in to comment.