Introduction
Introduction Statistics Contact Development Disclaimer Help
Make git adapt to annna git base dir. - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit bdf25e27cf487384d03c52fdc50e922ffcfc029f
parent 00d716ec2943b26691c4787c2fe101eb1a6ff84f
Author: Annna Robert-Houdin <[email protected]>
Date: Tue, 2 Feb 2021 22:08:03 +0100
Make git adapt to annna git base dir.
Diffstat:
M annna-add-hashtag-mass | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/annna-add-hashtag-mass b/annna-add-hashtag-mass
@@ -4,6 +4,8 @@ set -x
export PATH="$PATH:/home/annna/bin"
+gitdir=$(basename "$0")
+
while read -r line;
do
[ "$line" = "meme" ] && continue
@@ -21,8 +23,8 @@ do
annna-add-hashtag "${key}" "${value}" >&2 >/dev/null
[ $? -gt 0 ] && continue
- git commit -a -m "Adding ${key} tag." >&2 >/dev/null
- git push >&2 >/dev/null
+ git -C "$gitdir" commit -a -m "Adding ${key} tag." >&2 >/dev/n…
+ git -C "$gitdir" push >&2 >/dev/null
taguri="$(annna-get-hashtag-uri "${key}")"
if [ -n "${taguri}" ];
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.