commit | 767c386ba9e966cb8fb68879b30b55c0ae23fa8c | [log] [tgz] |
---|---|---|
author | Shazron Abdullah <shazron@apache.org> | Fri Nov 14 13:07:19 2014 -0800 |
committer | Shazron Abdullah <shazron@apache.org> | Fri Nov 14 13:07:19 2014 -0800 |
tree | c25ef687f014af9c704b63c8851426a2ba9e62bb | |
parent | 7a447b480f4476c3ee383b031b9f0ef73826ba66 [diff] |
Fixes phonegap/ios-deploy#80 --detect not showing non-zero exit code when no devices are detected.
diff --git a/ios-deploy.c b/ios-deploy.c index c8d22cb..36a3eeb 100644 --- a/ios-deploy.c +++ b/ios-deploy.c
@@ -1607,8 +1607,10 @@ } else { - if (!debug) + if (!debug) { printf("[....] No more devices found.\n"); + exit(exitcode_error); + } else { int mypid = getpid();