From 56b23370bde015de139b069998f1c7eaa166f748 Mon Sep 17 00:00:00 2001 From: Icarus Sparry Date: Sun, 24 Dec 2017 09:15:56 -0800 Subject: [PATCH] Remove an extra layer of shell As pointed out by Kai, I can avoid one level of shell wrapping. Mock is already running this via "/bin/sh -c" (function doshell in /usr/lib/python2.7/site-packages/mockbuild/util.py currently). Signed-off-by: Icarus Sparry --- Makefile.common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.common b/Makefile.common index 13a1b29..d0ab433 100644 --- a/Makefile.common +++ b/Makefile.common @@ -107,7 +107,7 @@ rootshell: #help shell: Puts you in a user shell in the home directory in the build root. shell: - $(MOCK) --result=results/ --no-cleanup-after --shell --uniqueext=$(PKG_NAME) --unpriv "/bin/sh -c 'cd ; exec \$$SHELL -l -i'" + $(MOCK) --result=results/ --no-cleanup-after --shell --uniqueext=$(PKG_NAME) --unpriv "cd && exec \$$SHELL -l -i" # Always rebuild the source rpm .PHONY: $(SRPMFILE)