Skip to content

Commit

Permalink
Check if path exists before linking.
Browse files Browse the repository at this point in the history
Signed-off-by: Shane Lawrence <[email protected]>
  • Loading branch information
shane-lawrence committed Dec 19, 2024
1 parent 02f3db9 commit ab2c625
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/driver-loader/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ echo "* Setting up /usr/src links from host"

for i in "$HOST_ROOT/usr/src"/*
do
base=$(basename "$i")
[[ -e $i ]] || continue
base=$(basename "$i")
ln -s "$i" "/usr/src/$base"
done

Expand Down

0 comments on commit ab2c625

Please sign in to comment.