From 462843a91a65a6355917b6726cfcc960533a2196 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sat, 12 Feb 2022 16:50:50 +0100 Subject: fix: remove trailing / in home --- bin/stagit-new-repo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/stagit-new-repo b/bin/stagit-new-repo index fe5e7ab..69754e6 100755 --- a/bin/stagit-new-repo +++ b/bin/stagit-new-repo @@ -11,7 +11,7 @@ while getopts ":r:d:o:u:h" o; do case "${o}" in *) printf "Invalid option: -%s\\n" "$OPTARG" && exit 1 ;; esac done -home="/home/git/" +home="/home/git" srv="/srv/git" www="/var/www/git" @@ -25,7 +25,7 @@ echo "$uri:$repo.git" > "$srv/$repo.git/url" echo "$owner" > "$srv/$repo.git/owner" echo "$desc" > "$srv/$repo.git/description" chown -R git:git "$srv/$repo.git" -ln -svf "$srv/$repo.git" "$home" +ln -svf "$srv/$repo.git" "$home/" echo "Creating a static page directory..." [ ! -d "$www/$repo" ] && echo "$repo already exists!" && exit 1 -- cgit v1.2.3-70-g09d2