From 34e60b17020233e4873cdb0a306c0233aba3967f Mon Sep 17 00:00:00 2001 From: Omer Tuchfeld Date: Tue, 30 Jul 2024 10:02:01 +0200 Subject: [PATCH] ilab wrapper: fix formatting 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 --- training/ilab-wrapper/ilab | 20 +++++++++---------- .../nvidia-bootc/duplicated/ilab-wrapper/ilab | 20 +++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/training/ilab-wrapper/ilab b/training/ilab-wrapper/ilab index e47624fa..94aa812e 100755 --- a/training/ilab-wrapper/ilab +++ b/training/ilab-wrapper/ilab @@ -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[@]}" diff --git a/training/nvidia-bootc/duplicated/ilab-wrapper/ilab b/training/nvidia-bootc/duplicated/ilab-wrapper/ilab index e47624fa..94aa812e 100755 --- a/training/nvidia-bootc/duplicated/ilab-wrapper/ilab +++ b/training/nvidia-bootc/duplicated/ilab-wrapper/ilab @@ -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[@]}"