Fix 'chk' scripts for generic shell (non-bash) and *BSD.

From: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2006-10-18 15:26:08 +01:00
1 parent 19c8d7a8fa
commit ee89b4ab59
6 files changed
+88 -42

No files matched your search

+10 -7
View File
@@ -1,10 +1,13 @@
#!/bin/bash
#!/bin/sh
# CHECK-BUILD CHECK-INSTALL
function error {
echo
echo " *** Check for Python version >= 2.2 FAILED"
exit 1
}
RC=0
python -V 2>&1 | cut -d ' ' -f 2 | grep -q '^2.[2345]' || error
python -V 2>&1 | cut -d ' ' -f 2 | grep -q '^2.[2345]' || RC=1
if test ${RC} -ne 0; then
echo
echo " *** Check for Python version >= 2.2 FAILED"
fi
exit ${RC}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.