Restore noscripts option
This is needed as per @kou1okada comment on 44e89c6
This commit is contained in:
parent
e0f31ae249
commit
73512e40cb
8
apt-cyg
8
apt-cyg
|
@ -145,6 +145,11 @@ do
|
||||||
shift 2
|
shift 2
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
--noscripts)
|
||||||
|
noscripts=1
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
|
||||||
--help)
|
--help)
|
||||||
usage
|
usage
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -452,7 +457,7 @@ case "$command" in
|
||||||
echo Package $package is already installed, skipping
|
echo Package $package is already installed, skipping
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
apt-cyg install $package || (( warn++ ))
|
apt-cyg install --noscripts $package || (( warn++ ))
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
if (( warn ))
|
if (( warn ))
|
||||||
|
@ -462,6 +467,7 @@ case "$command" in
|
||||||
|
|
||||||
# run all postinstall scripts
|
# run all postinstall scripts
|
||||||
|
|
||||||
|
(( noscripts )) && continue
|
||||||
find /etc/postinstall -name '*.sh' | while read script
|
find /etc/postinstall -name '*.sh' | while read script
|
||||||
do
|
do
|
||||||
echo Running $script
|
echo Running $script
|
||||||
|
|
Loading…
Reference in New Issue