Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions platform/nvidia-bluefield/installer/create_sonic_image
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#
# Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES.
# Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES.
# Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -203,11 +203,11 @@ copy_bin()
if [ -e $1 ]; then
bin=$1
else
bin=$(which $1 2> /dev/null)
bin=$(which $1 2> /dev/null || true)
fi
if [ -z "$bin" ]; then
echo "ERROR: Cannot find $1"
exit 1
return 0
fi
sudo mkdir -p .$(dirname $bin)
if [ ! -e .${bin} ]; then
Expand Down
Loading