Skip to content

Commit

Permalink
ilab wrapper: fix formatting
Browse files Browse the repository at this point in the history
The wrapper had a mixed used of tabs/spaces, making it annoying to edit

Formatted with shfmt to switch to spaces

Signed-off-by: Omer Tuchfeld <[email protected]>
  • Loading branch information
omertuc committed Jul 30, 2024
1 parent f9ed8bb commit e0e624d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions training/ilab-wrapper/ilab
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ export ENTRYPOINT="/opt/python3.11/venv/bin/ilab"
export PARAMS=("$@")

for dir in "$HOME/.cache" "$HOME/.config" "$HOME/.local"; do
mkdir -p "$dir"
mkdir -p "$dir"
done

if [[ "$1" = "shell" ]]; then
export ENTRYPOINT=bash
export PARAMS=()
export ENTRYPOINT=bash
export PARAMS=()
fi

PODMAN_COMMAND=("podman" "run" "--rm" "-it"
"--device" "${CONTAINER_DEVICE}"
"--security-opt" "label=disable" "--net" "host"
"-v" "$HOME:$HOME"
"--env" "HOME"
"--entrypoint" "$ENTRYPOINT"
"--env" "HF_TOKEN"
"${IMAGE_NAME}")
"--device" "${CONTAINER_DEVICE}"
"--security-opt" "label=disable" "--net" "host"
"-v" "$HOME:$HOME"
"--env" "HOME"
"--entrypoint" "$ENTRYPOINT"
"--env" "HF_TOKEN"
"${IMAGE_NAME}")

exec "${PODMAN_COMMAND[@]}" "${PARAMS[@]}"

0 comments on commit e0e624d

Please sign in to comment.