From c0492db3dcb4d80f173da1504350ed9182652d88 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Fri, 6 Feb 2009 14:27:56 +0100 Subject: [STLinux] Patches Import script errors --- STLinux/stlinux_import_patches.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/STLinux/stlinux_import_patches.sh b/STLinux/stlinux_import_patches.sh index 7865e45..38afb14 100755 --- a/STLinux/stlinux_import_patches.sh +++ b/STLinux/stlinux_import_patches.sh @@ -7,7 +7,7 @@ usage: $0:t [Patch # start] [Patch # end] EOF } -if [ -d .git ] +if ! git-rev-parse --git-dir >/dev/null then echo "This is not a GIT repository !" usage @@ -37,7 +37,7 @@ function read_patch_file() < $1 ;; "bz2") - bunzip -c $1 + bunzip2 -c $1 ;; "*") echo >&2 "Error ! $1:e is not a recognized patch extension !" -- cgit v1.2.3