diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-02-12 16:50:50 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-02-12 16:50:50 +0100 |
commit | 462843a91a65a6355917b6726cfcc960533a2196 (patch) | |
tree | 01030d33ab460abbd7283b996cadeb8e08a2e1cf /bin/stagit-new-repo | |
parent | 5571a7d2b5613b52718218afa773b14619ab7fba (diff) |
fix: remove trailing / in home
Diffstat (limited to 'bin/stagit-new-repo')
-rwxr-xr-x | bin/stagit-new-repo | 4 |
1 files 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 |