commit 1b1d286a33e821cc8e47c73d97a69974062d9f34
parent e753088e0ba3ac8326ff317a4da5afc78219124b
Author: Remy Noulin <loader2x@gmail.com>
Date: Sat, 28 Sep 2019 07:45:06 +0200
check if there is no directory in current working directory
checkPackages.c | 5 +++++
1 file changed, 5 insertions(+)
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/checkPackages.c b/checkPackages.c
@@ -43,6 +43,11 @@ int main(int ARGC, char** ARGV) {
var dirs = walkDirDir(shpPDir);
+ if (!dirs) {
+ logC("Directory not found.");
+ XFAILURE;
+ }
+
forEachS(dirs, P) {
if (not endsWithG(P, shpPDir)) {
var s = catS(P,"/package.yml");