X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=tools%2Fadd-git-hook.sh;h=5b1bf17219ebe752d1fd7d993873eb10564b66c5;hb=622018c5b46a98be67e1bc596312b21d5b6bbabf;hp=4ee919faf4239a8aecf737c198e54b6e45f24918;hpb=f19ca6105e9f74b01e799d02c280eec67696c228;p=thirdparty%2Fsystemd.git diff --git a/tools/add-git-hook.sh b/tools/add-git-hook.sh index 4ee919faf42..5b1bf17219e 100755 --- a/tools/add-git-hook.sh +++ b/tools/add-git-hook.sh @@ -1,9 +1,10 @@ -#!/bin/sh -eu +#!/bin/sh +set -eu cd "$MESON_SOURCE_ROOT" if [ ! -f .git/hooks/pre-commit.sample -o -f .git/hooks/pre-commit ]; then - exit 2 # not needed + exit 2 # not needed fi cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit