From b2c077c8d87b2524e3d4a028435bfdd76b52fc3e Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Tue, 3 Nov 2020 21:16:45 +0100 Subject: [PATCH] Newer version upstream --- tests/fixme.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/tests/fixme.sh b/tests/fixme.sh index f4c921c..1db1787 100755 --- a/tests/fixme.sh +++ b/tests/fixme.sh @@ -1,6 +1,6 @@ #!/bin/sh #$Id$ -#Copyright (c) 2017-2019 Pierre Pronchery +#Copyright (c) 2017-2020 Pierre Pronchery # #Redistribution and use in source and binary forms, with or without #modification, are permitted provided that the following conditions are met: @@ -42,6 +42,7 @@ TR="tr" _fixme() { res=0 + subdirs= $DATE echo @@ -56,6 +57,10 @@ _fixme() ;; esac done < "$PROJECTCONF" + if [ ! -n "$subdirs" ]; then + _error "Could not locate directories to analyze" + return $? + fi for subdir in $subdirs; do [ -d "../$subdir" ] || continue for filename in $($FIND "../$subdir" -type f | $SORT); do @@ -152,6 +157,14 @@ _debug() } +#error +_error() +{ + echo "$PROGNAME: $@" 1>&2 + return 2 +} + + #usage _usage() {