1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Fix 'bin/package clean' deleting entire git repo (#32)

This appears to be originating from:

2755         *)      if      test ! -d $INSTALLROOT
2756                 then    INSTALLROOT=$PACKAGEROOT;

where INSTALLROOT=PACKAGEROOT and 'clean' deletes everything under
INSTALLROOT thus deleting the entire git repo. This only applies when
there's no arch/$HOSTTYPE directory due to the condition above.

bin/package,
src/cmd/INIT/package.sh:
- Delete arch/$HOSTTYPE as stated in the documentation
  for the clean action instead of $INSTALLROOT.
This commit is contained in:
Anuradha Weeraman 2020-06-21 19:59:55 -04:00 committed by GitHub
parent de2b4a6f97
commit 54da7fc202
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -4992,7 +4992,7 @@ admin) while test ! -f $admin_db
clean|clobber)
cd $PACKAGEROOT
$exec rm -rf $INSTALLROOT
$exec rm -rf arch/$HOSTTYPE
exit
;;

View file

@ -4991,7 +4991,7 @@ admin) while test ! -f $admin_db
clean|clobber)
cd $PACKAGEROOT
$exec rm -rf $INSTALLROOT
$exec rm -rf arch/$HOSTTYPE
exit
;;