From 2f41c16957448d1f4b7aebdc5e90583abcbc88f7 Mon Sep 17 00:00:00 2001 From: Job79 Date: Wed, 27 Aug 2025 20:54:38 +0200 Subject: [PATCH] feat: allow calling host script without symlink --- containers/base/config/bin/host | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/containers/base/config/bin/host b/containers/base/config/bin/host index cea3cdb..19c9db1 100755 --- a/containers/base/config/bin/host +++ b/containers/base/config/bin/host @@ -1,2 +1,6 @@ -#!/bin/sh -host-spawn -cwd "${PWD/#$HOME/$HOST_HOME}" $(basename "$0") "$@" +#!/bin/bash +if [ "$(basename "$0")" != "host" ]; then + host-spawn -cwd "${PWD/#$HOME/$HOST_HOME}" $(basename "$0") "$@" +else + host-spawn -cwd "${PWD/#$HOME/$HOST_HOME}" "$@" +fi