From 4fae29531c16df28685ca0530fbc0162b7882cff Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 9 Jul 2015 18:53:23 -0600 Subject: whitespace --- wrapper/Makefile | 2 +- wrapper/inner.sh.m4 | 10 +++++----- wrapper/outer.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'wrapper') 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; -- cgit v1.2.3-2-g168b