Skip to content

Commit

Permalink
Avoid symlinking to /bin/true in minimal/do, which fails when /bin/tr…
Browse files Browse the repository at this point in the history
…ue is busybox (apenwarr#24)
  • Loading branch information
tonyg authored and apenwarr committed Dec 31, 2018
1 parent bd9a9e4 commit e897c3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minimal/do
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ if [ -z "$DO_BUILT" -a "$_cmd" != "redo-whichdo" ]; then
for d in redo redo-ifchange redo-whichdo; do
ln -s "$REDO" "$DO_PATH/$d"
done
[ -e /bin/true ] && TRUE=/bin/true || TRUE=/usr/bin/true
for d in redo-ifcreate redo-stamp redo-always redo-ood \
redo-targets redo-sources; do
ln -s $TRUE "$DO_PATH/$d"
echo "#!/bin/sh" >"$DO_PATH/$d"
chmod a+rx "$DO_PATH/$d"
done
fi

Expand Down

0 comments on commit e897c3e

Please sign in to comment.