Avoid symlinking to /bin/true in minimal/do, which fails when /bin/true is busybox (#24)
This commit is contained in:
parent
bd9a9e4005
commit
e897c3eca5
1 changed files with 2 additions and 2 deletions
|
|
@ -103,10 +103,10 @@ if [ -z "$DO_BUILT" -a "$_cmd" != "redo-whichdo" ]; then
|
||||||
for d in redo redo-ifchange redo-whichdo; do
|
for d in redo redo-ifchange redo-whichdo; do
|
||||||
ln -s "$REDO" "$DO_PATH/$d"
|
ln -s "$REDO" "$DO_PATH/$d"
|
||||||
done
|
done
|
||||||
[ -e /bin/true ] && TRUE=/bin/true || TRUE=/usr/bin/true
|
|
||||||
for d in redo-ifcreate redo-stamp redo-always redo-ood \
|
for d in redo-ifcreate redo-stamp redo-always redo-ood \
|
||||||
redo-targets redo-sources; do
|
redo-targets redo-sources; do
|
||||||
ln -s $TRUE "$DO_PATH/$d"
|
echo "#!/bin/sh" >"$DO_PATH/$d"
|
||||||
|
chmod a+rx "$DO_PATH/$d"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue