mirror of
https://gitlab.com/Snogard/kaido.git
synced 2025-08-20 10:50:06 +02:00
fix git diff checking on config folder
This commit is contained in:
parent
ec03aa451e
commit
68b0be9059
@ -33,8 +33,6 @@ fi
|
|||||||
# ----------------------
|
# ----------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# read config files
|
# read config files
|
||||||
installList=$(cat ${updateConfig} | grep -i install-)
|
installList=$(cat ${updateConfig} | grep -i install-)
|
||||||
configureList=$(cat ${updateConfig} | grep -i configure-)
|
configureList=$(cat ${updateConfig} | grep -i configure-)
|
||||||
@ -105,9 +103,9 @@ echo -e "Checking if installations need to be updated\n"
|
|||||||
for val in $installList; do
|
for val in $installList; do
|
||||||
name=${val:8}
|
name=${val:8}
|
||||||
# TODO support parameters
|
# TODO support parameters
|
||||||
if $(git diff --name-only $previusCommit $currentCommit src/commands/install | grep -qi $name) || \
|
if $(git -C "$root" diff --name-only $previusCommit $currentCommit src/commands/install | grep -qi $name) || \
|
||||||
( [ -f "$confdir/containers/$name/envs.sh" ] && $(git diff --name-only $previusCommit_config $currentCommit_config "$confdir/containers/$name/envs.sh" | grep -qi "envs\.sh" ) ) || \
|
( [ -f "$confdir/containers/$name/envs.sh" ] && $(git -C "$confdir" diff --name-only $previusCommit_config $currentCommit_config "$confdir/containers/$name/envs.sh" | grep -qi "envs\.sh" ) ) || \
|
||||||
[ ! $(git diff --name-only $previusCommit_config $currentCommit_config $confdir/containers/$name/secrets) -z ] ; then
|
[ ! $(git -C "$confdir" diff --name-only $previusCommit_config $currentCommit_config "$confdir/containers/$name/secrets") -z ] ; then
|
||||||
echo -e "Updating ${name} installation\n"
|
echo -e "Updating ${name} installation\n"
|
||||||
$installScript $name
|
$installScript $name
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user