mirror of
https://github.com/apache/nuttx.git
synced 2026-08-19 12:38:18 +00:00
Fix for BSD install without -D option
This commit is contained in:
parent
d1f17269f4
commit
dfb46a5f19
1 changed files with 5 additions and 1 deletions
|
|
@ -246,7 +246,11 @@ cat $rcstemplate | \
|
|||
|
||||
# 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; }
|
||||
rm -f $rcsfile
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue