ref(install-script): some refs
This commit is contained in:
parent
64cdc4ea6b
commit
16b2110de4
8
install
8
install
@ -189,21 +189,21 @@ cmd_docker() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
is_target_installed() {
|
is_target_installed() {
|
||||||
local not_fully_installed=0
|
local not_fully_installed=false
|
||||||
|
|
||||||
local targetfile
|
local targetfile
|
||||||
for targetfile in ${TARGETS["$1"]}
|
for targetfile in ${TARGETS["$1"]}
|
||||||
do
|
do
|
||||||
if [ "${targetfile::1}" = "%" ]; then
|
if [ "${targetfile::1}" = "%" ]; then
|
||||||
is_target_installed "${targetfile:1}" || not_fully_installed=1
|
is_target_installed "${targetfile:1}" || not_fully_installed=true
|
||||||
else
|
else
|
||||||
if [ ! -e "$TARGET_PATH/$targetfile" ]; then
|
if [ ! -e "$TARGET_PATH/$targetfile" ]; then
|
||||||
echo "$targetfile not linked"
|
echo "$targetfile not linked"
|
||||||
not_fully_installed=1
|
not_fully_installed=true
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if (( not_fully_installed != 0 )); then
|
if $not_fully_installed; then
|
||||||
echo "Target '$1' not fully installed"
|
echo "Target '$1' not fully installed"
|
||||||
echo
|
echo
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user