diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-02-12 14:34:51 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-02-16 17:43:07 +0100 |
commit | ce76def5492685f0efde19460fe0b1f355ac60f9 (patch) | |
tree | d587281f6cf808fb7a34e1af55fad1b1ad73de51 /scripts/install_copy_toolchain.sh | |
parent | 989c4db5c7b79941d72c1b33523697d699eeb2a3 (diff) | |
download | ptxdist-ce76def5492685f0efde19460fe0b1f355ac60f9.tar.gz ptxdist-ce76def5492685f0efde19460fe0b1f355ac60f9.tar.xz |
[install] fix return values
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/install_copy_toolchain.sh')
-rwxr-xr-x | scripts/install_copy_toolchain.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/install_copy_toolchain.sh b/scripts/install_copy_toolchain.sh index 8bfa49061..84687181a 100755 --- a/scripts/install_copy_toolchain.sh +++ b/scripts/install_copy_toolchain.sh @@ -58,14 +58,14 @@ ptxd_get_lib_path() { lib_path="$(${CC} -print-file-name=${lib})" if test "${lib_path}" = "${lib}"; then echo "install_copy_toolchain_lib: ${lib} not found" >&2 - return -1 + return 1 fi # let the shell canonicalized the path lib_dir="$(cd ${lib_path%/${lib}} && echo $PWD)" if test \! -d "${lib_dir}"; then echo "install_copy_toolchain_lib: ${lib_dir} not found" >&2 - return -1 + return 1 fi echo "${lib_dir}/${lib}" @@ -266,7 +266,7 @@ ptxd_install_toolchain_lib() { fi else echo "error: found ${lib_path}, but neither file nor link" 2>&1 - return -1 + return 1 fi return 0 @@ -335,6 +335,7 @@ ptxd_install_toolchain_usr() { if test -z "$(find ${sysroot_usr} -path "${sysroot_usr}/${usr}" -a \! -type d)"; then echo "file ${usr} not found" + return 1 fi find ${sysroot_usr} -path "${sysroot_usr}/${usr}" -a \! -type d | while read usr_src; do |