diff options
| author | Bill Nottingham <notting@redhat.com> | 2000-07-27 21:47:15 +0000 |
|---|---|---|
| committer | Bill Nottingham <notting@redhat.com> | 2000-07-27 21:47:15 +0000 |
| commit | e7484df6a480616e2f412424a0adbfc76e0b8148 (patch) | |
| tree | 74d7b66c156d972f58dcc28dbe412aa407ef966a /scripts | |
| parent | bfa4e90d0eb30d934a153d87bd7528560f19914d (diff) | |
only purge files if the cd succeeded
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/upd-instroot | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/upd-instroot b/scripts/upd-instroot index 6c800cbfc..acc27bc95 100755 --- a/scripts/upd-instroot +++ b/scripts/upd-instroot @@ -475,9 +475,10 @@ cat $DESTGR/usr/lib/anaconda/lang-table* | awk ' { print $5; print gensub(/\..*$/,"","",$5); print gensub(/_.*$/,"","",$5); } ' | LC_ALL=C sort -u > $DESTGR/locales for p in lib share; do ( -cd $DESTGR/usr/$p/locale; +cd $DESTGR/usr/$p/locale && { ls | grep -v locale.alias | LC_ALL=C sort > $DESTGR/locales.list LC_ALL=C comm -13 $DESTGR/locales $DESTGR/locales.list | xargs rm -rf +} ); done rm -f $DESTGR/locales $DESTGR/locales.list |
