summaryrefslogtreecommitdiff
path: root/wrapper
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-07-09 18:53:23 -0600
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-07-09 18:53:23 -0600
commit4fae29531c16df28685ca0530fbc0162b7882cff (patch)
treeb838d208af69475f68e1bba212433f5f85b2d005 /wrapper
parent1c2efabda503cc1b668b492ff553f18179cdb429 (diff)
whitespace
Diffstat (limited to 'wrapper')
-rw-r--r--wrapper/Makefile2
-rw-r--r--wrapper/inner.sh.m410
-rw-r--r--wrapper/outer.c2
3 files changed, 7 insertions, 7 deletions
diff --git a/wrapper/Makefile b/wrapper/Makefile
index 54047d2..22e9f46 100644
--- a/wrapper/Makefile
+++ b/wrapper/Makefile
@@ -1,6 +1,6 @@
#!/usr/bin/make -f
# Copyright (C) 2009, 2015 Luke Shumaker
-#
+#
# 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
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
diff --git a/wrapper/outer.c b/wrapper/outer.c
index 4bc2d2f..c465555 100644
--- a/wrapper/outer.c
+++ b/wrapper/outer.c
@@ -56,7 +56,7 @@ main(int argc, char *argv[]) {
_("Could not allocate cleared memory"));
args[0] = exec_file;
memcpy(&args[1], argv, sizeof(char*) * argc);
-
+
execv(exec_file, args);
error(EXIT_FAILURE_EXEC, errno, _("Could not execute: %s"), exec_file);
return EXIT_FAILURE_EXEC;