Skip to content

Commit b04d165

Browse files
committed
model-conversion : remove hardcoded /bin/bash shebangs [no ci]
This commit updates the bash scripts to use env instead of using hardcoded /bin/bash in the shebang line. The motivation for this is that some systems may have bash installed in a different location, and using /usr/bin/env bash ensures that the script will use the first bash interpreter found in the user's PATH, making the scripts more portable across different environments.
1 parent 5eae934 commit b04d165

15 files changed

+16
-14
lines changed

examples/model-conversion/scripts/causal/compare-embeddings-logits.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#/bin/bash
1+
#!/usr/bin/env bash
22

33
set -e
44

examples/model-conversion/scripts/causal/convert-model.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -e
44

examples/model-conversion/scripts/causal/run-converted-model-embeddings-logits.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -e
44

examples/model-conversion/scripts/causal/run-converted-model.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -e
44

examples/model-conversion/scripts/embedding/compare-embeddings-logits.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#/bin/bash
1+
#!/usr/bin/env bash
22

33
set -e
44

examples/model-conversion/scripts/embedding/convert-model.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -e
44

examples/model-conversion/scripts/embedding/run-converted-model.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -e
44

examples/model-conversion/scripts/utils/create-collection-add-model.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11

2+
#!/usr/bin/env bash
3+
24
COLLECTION_SLUG=$(python ./create_collection.py --return-slug)
35
echo "Created collection: $COLLECTION_SLUG"
46

examples/model-conversion/scripts/utils/curl-embedding-server.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
curl --request POST \
33
--url http://localhost:8080/embedding \
44
--header "Content-Type: application/json" \

examples/model-conversion/scripts/utils/inspect-converted-model.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# First try command line argument, then environment variable, then file
44
CONVERTED_MODEL="${1:-"$CONVERTED_MODEL"}"

0 commit comments

Comments
 (0)