[tasks] 04/07: Ensure local file exists
Ximin Luo
infinity0 at debian.org
Mon Oct 24 16:17:32 UTC 2016
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch master
in repository tasks.
commit 5ed67301dc0cdc5577069c5e99ac6f6ee16056a0
Author: Ximin Luo <infinity0 at debian.org>
Date: Mon Oct 24 17:52:07 2016 +0200
Ensure local file exists
---
task | 3 +++
1 file changed, 3 insertions(+)
diff --git a/task b/task
index 459ad32..3ea4611 100755
--- a/task
+++ b/task
@@ -6,6 +6,9 @@ workdir="$(git rev-parse --show-toplevel)"
git submodule update --init
ln -rsf "$workdir/task-history-git/post-merge" "$(git rev-parse --git-path hooks)/post-merge"
+# Ensure local file exists
+test -f "$workdir/taskrc.local" || touch "$workdir/taskrc.local"
+
export TASKRC="$workdir/taskrc"
export TASKDATA="$workdir"
exec task "$@"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/tasks.git
More information about the Reproducible-commits
mailing list