From bfb9ca607d96c1f8e816f5f9bab05f3d4fd76c5e Mon Sep 17 00:00:00 2001 From: Felipe de Jesus Ruiz Garcia Date: Tue, 13 Nov 2018 23:25:24 -0600 Subject: [PATCH] Move the cd statement to the correct location Move the cd statement to the correct location above the sanity check that the operation completed. the validation below, comparate the latest statement was sucessfull. so this, should be the cd statement. Change-Id: Idd093cf215cf1b637e37b89e8496231c64260972 Signed-off-by: Felipe de Jesus Ruiz Garcia --- build-tools/srpm-utils | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-tools/srpm-utils b/build-tools/srpm-utils index 42e558f6..be61bea3 100644 --- a/build-tools/srpm-utils +++ b/build-tools/srpm-utils @@ -1429,8 +1429,8 @@ srpm_apply_meta_patches () { local ff if [ -d "$PATCH_DIR" ]; then - cd $PATCH_DIR echo ".gitignore" >> "$META_PATCH_TARGET_DIR/.gitignore" + cd $PATCH_DIR if [ $? -ne 0 ]; then echo "ERROR: Failed to cd to '$PATCH_DIR'"