Fix for BSD install without -D option

This commit is contained in:
Gregory Nutt 2014-10-15 12:25:47 -06:00
parent d1f17269f4
commit dfb46a5f19
1 changed files with 5 additions and 1 deletions

View File

@ -246,7 +246,11 @@ cat $rcstemplate | \
# And install it at the specified relative location # And install it at the specified relative location
install -D -m 0755 $rcsfile $workingdir/$uinitscript || \ # Fix for BSD install without -D option
mkdir -p $workingdir/$uinitscript
rmdir $workingdir/$uinitscript
install -m 0755 $rcsfile $workingdir/$uinitscript || \
{ echo "Failed to install $rcsfile at $workingdir/$uinitscript"; rm -f $rcsfile; exit 1; } { echo "Failed to install $rcsfile at $workingdir/$uinitscript"; rm -f $rcsfile; exit 1; }
rm -f $rcsfile rm -f $rcsfile