Introduction
Introduction Statistics Contact Development Disclaimer Help
tuse relative path for current script - gph-poll - a dynamic poll for geomyidae…
git clone git://src.adamsgaard.dk/gph-poll
Log
Files
Refs
LICENSE
---
commit a77256463a2060474346442797c8acb504e09141
parent 9419e6f9379e509a32bfc81678d3887556f0c1e0
Author: Anders Damsgaard <[email protected]>
Date: Thu, 1 Apr 2021 21:02:56 +0200
use relative path for current script
Diffstat:
M index.dcgi | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/index.dcgi b/index.dcgi
t@@ -7,7 +7,6 @@ port="$4"
polldb="poll.db"
polldescription="description.txt"
-polldir="poll"
if [ -n "${search}" -o "${arguments}" ]; then
tmpdb="$(mktemp)"
t@@ -31,11 +30,11 @@ if [ -r "$polldb" ]; then
| uniq -ci \
| sort -nr \
| while read -r count option; do
- printf '[1|(%s) %s|/%s?%s|server|port]\n' \
- "$count" "$option" "$polldir" "$option"
+ printf '[1|(%s) %s|./%s?%s|server|port]\n' \
+ "$count" "$option" "${SCRIPT_NAME}" "$option"
done
fi
-printf '\n[7|Add new choice: _______|/%s|server|port]\n' "$polldir"
+printf '\n[7|Add new choice: _______|./%s|server|port]\n' "${SCRIPT_NAME}"
printf '\n[1|<< back|/|server|port]\n'
You are viewing proxied material from mx1.adamsgaard.dk. 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.