From 6caeb18c60aac9ad18d9633e517aa720d136311f Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Sat, 20 Feb 2016 02:22:40 +0100 Subject: Quote $RealBin in t/11-git.t when shelling out --- t/11-git.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 't/11-git.t') diff --git a/t/11-git.t b/t/11-git.t index 00f4299..cc75e31 100755 --- a/t/11-git.t +++ b/t/11-git.t @@ -54,7 +54,7 @@ cleanup(); # initialise repo capture_merged { system(<<"END"); }; -cd $RealBin; rm -rf gitrepo; mkdir gitrepo; cd gitrepo; +cd "$RealBin"; rm -rf gitrepo; mkdir gitrepo; cd gitrepo; git init; echo "echo Hello" > test; git add test; git commit -m 'initial'; git checkout -b b1; echo 'echo "Hello World."' > test; git commit -am 'branch commit'; @@ -68,7 +68,7 @@ script (qw/ sbosnap fetch /, { expected => qr!Pulling SlackBuilds tree.*Cloning # make a conflict capture_merged { system(<<"END"); }; -cd $RealBin; cd gitrepo; git reset --hard b1 +cd "$RealBin"; cd gitrepo; git reset --hard b1 END # 2: sbosnap update through merge conflict -- cgit v1.2.3