Restore noscripts option

This is needed as per @kou1okada comment on 44e89c6
This commit is contained in:
Steven Penny 2014-05-21 23:44:30 -05:00
parent e0f31ae249
commit 73512e40cb
1 changed files with 7 additions and 1 deletions

View File

@ -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