Browse Source

fix script

Waldemar Brodkorb 11 years ago
parent
commit
6e2120ea29
1 changed files with 2 additions and 2 deletions
  1. 2 2
      scripts/scan-pkgs.sh

+ 2 - 2
scripts/scan-pkgs.sh

@@ -19,12 +19,12 @@ test -z "$BASH_VERSION$KSH_VERSION" && exec $BASH $0 "$@"
 [[ -n $BASH_VERSION ]] && shopt -s extglob
 topdir=$(readlink -nf $(dirname $0)/.. 2>/dev/null || (cd $(dirname $0)/..; pwd -P))
 OStype=$(uname)
-isdeb=$(uname -a|grep '\(Debian\|Ubuntu\)')
 out=0
 
 . $topdir/.config
 
-if [ $isdeb -eq 0 ];then
+uname -a|grep '\(Debian\|Ubuntu\)' >/dev/null 2>&1
+if [ $? -eq 0 ];then
 	if [[ -n $ADK_COMPILE_PYTHON2 ]]; then
 		NEED_DPKG_ARCHITECTURE="$NEED_DPKG_ARCHITECTURE python2"
 	fi