summaryrefslogtreecommitdiff
path: root/STLinux/stlinux_import_patches.sh
diff options
context:
space:
mode:
Diffstat (limited to 'STLinux/stlinux_import_patches.sh')
-rwxr-xr-xSTLinux/stlinux_import_patches.sh4
1 files 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 <STLINUX_PATCHES FOLDER> <TAG PREFIX> [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 !"