diff options
Diffstat (limited to 'japanese/ptex-base/pkg-req')
-rw-r--r-- | japanese/ptex-base/pkg-req | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/japanese/ptex-base/pkg-req b/japanese/ptex-base/pkg-req index a9a628f3c815..f353fb4258a1 100644 --- a/japanese/ptex-base/pkg-req +++ b/japanese/ptex-base/pkg-req @@ -22,7 +22,11 @@ echo if [ "x$3" != "xBATCH" ]; then echo 'If you proceed, these files will be renamed to *.old and new files' echo 'will be installed.' - read -p 'Would you like to proceed? (y/N)> ' ans + if [ -z "${PACKAGE_BUILDING}" ]; then + read -p 'Would you like to proceed? (y/N)> ' ans + else + ans=yes + fi case x$ans in xy*|xY*) for f in ${files_exist} ;do mv -f $f ${f}.old; done; exit 0 esac |