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:
parent
de2b4a6f97
commit
54da7fc202
2 changed files with 2 additions and 2 deletions
|
@ -4992,7 +4992,7 @@ admin) while test ! -f $admin_db
|
|||
|
||||
clean|clobber)
|
||||
cd $PACKAGEROOT
|
||||
$exec rm -rf $INSTALLROOT
|
||||
$exec rm -rf arch/$HOSTTYPE
|
||||
exit
|
||||
;;
|
||||
|
||||
|
|
|
@ -4991,7 +4991,7 @@ admin) while test ! -f $admin_db
|
|||
|
||||
clean|clobber)
|
||||
cd $PACKAGEROOT
|
||||
$exec rm -rf $INSTALLROOT
|
||||
$exec rm -rf arch/$HOSTTYPE
|
||||
exit
|
||||
;;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue