create-pull-request: cleanup bashisms
Made create-pull-request POSIX compatible: - Replaced /bin/bash -> /bin/sh in shebang. - Replaced usage of pushd/popd with generic shell commands. - Tested on zsh and dash. (From OE-Core rev: b5c77a94b97b316b7ea075841d18b73e6dccbf2d) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
f535efb865
commit
4c35cd94e3
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
#
|
||||
# Copyright (c) 2010-2013, Intel Corporation.
|
||||
# All Rights Reserved
|
||||
|
@ -177,14 +177,15 @@ mkdir $ODIR
|
|||
|
||||
if [ -n "$RELDIR" ]; then
|
||||
ODIR=$(realpath $ODIR)
|
||||
pushd $RELDIR > /dev/null
|
||||
pdir=$(pwd)
|
||||
cd $RELDIR
|
||||
extraopts="--relative"
|
||||
fi
|
||||
|
||||
# Generate the patches and cover letter
|
||||
git format-patch $extraopts -M40 --subject-prefix="$PREFIX" -n -o $ODIR --thread=shallow --cover-letter $RELATIVE_TO..$COMMIT_ID > /dev/null
|
||||
|
||||
[ -n "$RELDIR" ] && popd > /dev/null
|
||||
[ -n "$RELDIR" ] && cd $pdir
|
||||
|
||||
# Customize the cover letter
|
||||
CL="$ODIR/0000-cover-letter.patch"
|
||||
|
|
Loading…
Reference in New Issue