bootstrap-root: added diff-highlight creation

This commit is contained in:
Tobias Schmidl 2021-09-08 09:44:11 +02:00
parent 8f1572f322
commit a8f4b37da2

View file

@ -54,3 +54,11 @@ cargo install --root /usr/local --git https://github.com/mookid/diffr
# shellcheck disable=SC2086
curl $CURLOPT -o /usr/local/sbin/cleanup.sh https://gist.github.com/schtobia/f02deeaf2fd20b23ae9fcf0f451cc858/raw/cleanup.sh \
&& chmod u+x /usr/local/sbin/cleanup.sh
# diff-highlight from git is necessary for tig
if [ ! -x /usr/local/bin/diff-highlight ];
then
echo "#!/usr/bin/perl" > /usr/local/bin/diff-highlight \
&& cat /usr/share/doc/git/contrib/diff-highlight/DiffHighlight.pm /usr/share/doc/git/contrib/diff-highlight/diff-highlight.perl >> /usr/local/bin/diff-highlight \
&& chmod +x /usr/local/bin/diff-highlight
fi