summaryrefslogtreecommitdiff
path: root/wrapper/inner.sh.m4
diff options
context:
space:
mode:
Diffstat (limited to 'wrapper/inner.sh.m4')
-rw-r--r--wrapper/inner.sh.m410
1 files changed, 5 insertions, 5 deletions
diff --git a/wrapper/inner.sh.m4 b/wrapper/inner.sh.m4
index 8444bd6..047b8f1 100644
--- a/wrapper/inner.sh.m4
+++ b/wrapper/inner.sh.m4
@@ -1,9 +1,9 @@
#!/usr/bin/env bash
# rvs inner.sh - The main RVS program
# Copyright (C) 2009-2010, 2015 Luke Shumaker
-#
+#
# This file is part of rvs.
-#
+#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
@@ -103,16 +103,16 @@ _repo() {
[[ $# -ne 0 ]] || errusage 1 'Usage: %q repo'
if [ -z "${!varname_REPO:-}" ]; then # we aren't getting a value from then env
local repo=".${PACKAGE,,}"
-
+
# [------can ascend-----] && ! [-not found repo--]
while [ "$PWD" != "$OLDPWD" ] && ! [ -d "$PWD/$repo" ]; do
cd ..
done
-
+
if [ -d "$PWD/$repo" ]; then
# we found a repository
printf '%s\n' "$PWD/$repo"
- else
+ else
# we didn't find a repository
error 128 "No %s repository found" "$PACKAGE"
fi