Skip to content

Commit

Permalink
Get path & script name through Bash
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabbenD committed Dec 10, 2023
1 parent 1de654d commit 3a0cae8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ostree.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function ENV_CREATE_OPTS {
declare SYSTEM_OPT_TIMEZONE=${SYSTEM_OPT_TIMEZONE:='Etc/UTC'}
declare SYSTEM_OPT_KEYMAP=${SYSTEM_OPT_KEYMAP:='us'}

declare PODMAN_OPT_BUILDFILE=${PODMAN_OPT_BUILDFILE:="$(dirname ${0})/archlinux/Containerfile.base:ostree/base,$(dirname ${0})/Containerfile.host.example:ostree/host"}
declare PODMAN_OPT_BUILDFILE=${PODMAN_OPT_BUILDFILE:="${0%/*}/archlinux/Containerfile.base:ostree/base","${0%/*}/Containerfile.host.example:ostree/host"}
declare PODMAN_OPT_NOCACHE=${PODMAN_OPT_NOCACHE:='0'}
declare PACMAN_OPT_NOCACHE=${PACMAN_OPT_NOCACHE:='0'}
}
Expand Down Expand Up @@ -240,7 +240,7 @@ function CLI_SETUP {
--alternative \
--options='b:,c:,d:,f:,k:,t:,m::,n::,q::' \
--longoptions='base-os:,cmdline:,dev:,file:,keymap:,time:,merge::,no-cache::,no-pacman-cache::,no-podman-cache::,quiet::' \
--name="$(basename ${0})" \
--name="${0##*/}" \
-- "${@}"
)

Expand Down

0 comments on commit 3a0cae8

Please sign in to comment.