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
|
||||
;;
|
||||
|
||||
--noscripts)
|
||||
noscripts=1
|
||||
shift
|
||||
;;
|
||||
|
||||
--help)
|
||||
usage
|
||||
exit 0
|
||||
|
@ -452,7 +457,7 @@ case "$command" in
|
|||
echo Package $package is already installed, skipping
|
||||
continue
|
||||
fi
|
||||
apt-cyg install $package || (( warn++ ))
|
||||
apt-cyg install --noscripts $package || (( warn++ ))
|
||||
done
|
||||
fi
|
||||
if (( warn ))
|
||||
|
@ -462,6 +467,7 @@ case "$command" in
|
|||
|
||||
# run all postinstall scripts
|
||||
|
||||
(( noscripts )) && continue
|
||||
find /etc/postinstall -name '*.sh' | while read script
|
||||
do
|
||||
echo Running $script
|
||||
|
|
Loading…
Reference in New Issue