Skip to content

Commit

Permalink
Enable bash scr to to be path-independent using $0 to address ERROR: …
Browse files Browse the repository at this point in the history
…failed to solve: failed to read dockerfile: open Dockerfile.intel_hpu: no such file or director when following README (opea-project#808)

Signed-off-by: Qun Gao <qun.gao@intel.com>
Co-authored-by: ZePan110 <ze.pan@intel.com>
Co-authored-by: Abolfazl Shahbazi <12436063+ashahba@users.noreply.github.com>
  • Loading branch information
3 people authored Nov 8, 2024
1 parent 52757b3 commit 9a50131
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Get script directory
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
echo "Script directory: $SCRIPT_DIR"
cd $SCRIPT_DIR

# Set default values
default_hw_mode="cpu"

Expand Down

0 comments on commit 9a50131

Please sign in to comment.