Introduction
Introduction Statistics Contact Development Disclaimer Help
Be more liberal in git porno dir. - git-porno - Git Porno
git clone git://bitreich.org/git-porno git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrin…
Log
Files
Refs
Tags
README
LICENSE
---
commit 1597e0759c4a242aaad507c273908306f93019c8
parent e0f00bc4118569fc4e31526b346a8dc70658c0d5
Author: Christoph Lohmann <[email protected]>
Date: Wed, 18 Oct 2023 20:09:44 +0200
Be more liberal in git porno dir.
Diffstat:
M git-porno | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/git-porno b/git-porno
@@ -1,13 +1,17 @@
#!/bin/sh
mediadir="${GIT_PORNO_MEDIA:-/usr/local/share/git-porno}"
-
-git_porno_cmd() {
+if ! test -d "$mediadir"
+then
+ mediadir="${GIT_PORNO_MEDIA:-/usr/share/git-porno}"
if ! test -d "$mediadir"
then
printf "error: could not find GIT_PORNO_DIR\n" >&2
exit 1
fi
+fi
+
+git_porno_cmd() {
mpv --really-quiet --force-window=no --no-video "${mediadir}/git-$1.op…
git "$@"
}
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.