vix 0.1.2

Make sure that %projdir% is converted to Project Root for running
commands as well
This commit is contained in:
Antranig Vartanian 2025-06-18 13:49:28 +04:00
parent 88b36af849
commit 1d61d8dcee
No known key found for this signature in database
GPG key ID: DE3998662D59F21C

5
vix
View file

@ -3,7 +3,7 @@
# set global variables
PROGNAME=${0##*/}
VERSION="0.1.1"
VERSION="0.1.2"
COLOUR_SET_R="\033[0;31m"
COLOUR_SET_G="\033[0;32m"
@ -317,7 +317,8 @@ _run_cmds() {
run_line=$(
grep -E "^${key}[[:space:]]*=" vipakfile \
| cut -d= -f2- \
| sed -e 's/^[[:space:]]*//'
| sed -e 's/^[[:space:]]*//' \
-e "s|%projdir%|${PROJECT_ROOT}|g"
)
[ -n "$run_line" ] || perror "${key} not set in vipakfile"