diff --git a/common.sh b/common.sh index 0a4525c40..07ecae4b7 100644 --- a/common.sh +++ b/common.sh @@ -407,8 +407,7 @@ userpatch_create() read -p 'Press after you are done with changes to the source' git add . # create patch out of changes - local temp=$(git diff --staged) - [[ -z $TEMP ]] && echo "${temp}" > $SRC/userpatches/patch/$1-$LINUXFAMILY-$(date +'%d.%m.%Y').patch + git diff --staged > $SRC/userpatches/patch/$1-$LINUXFAMILY-$(date +'%d.%m.%Y').patch git reset --soft HEAD~ fi }