diff --git a/sbs b/sbs index 83b598b42e6b4797d2891dcd8d13c8073e144257..36c4513ad473f5a7c8f34d16f554ee3b151d6b58 100755 --- a/sbs +++ b/sbs @@ -640,8 +640,6 @@ list() { config_host=false build_dir="$build_default_dir" - check_configured "$build_dir" "$config_debug" "$config_verbose" "$config_host" || return - list_type=${args[0]} if [ -z "$list_type" ]; then @@ -649,6 +647,8 @@ list() { return $EINVAL fi + check_configured "$build_dir" "$config_debug" "$config_verbose" "$config_host" &> /dev/null || return + if [ "$list_type" = "targets" ]; then cmake --build "$build_dir" --target help \ | grep -o '^[^/]*\.bin' | cut -f 1 -d '.'