+braces
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
parent
d79c2b0a28
commit
a48fe6d41b
2 changed files with 2 additions and 1 deletions
1
Makefile
1
Makefile
|
@ -208,4 +208,5 @@ test: ccollect.sh /tmp/ccollect
|
||||||
|
|
||||||
test2: ccollect.sh /tmp/ccollect
|
test2: ccollect.sh /tmp/ccollect
|
||||||
cd ./conf/sources/; for s in *; do CCOLLECT_CONF=../ ../../ccollect.sh daily "$$s"; done
|
cd ./conf/sources/; for s in *; do CCOLLECT_CONF=../ ../../ccollect.sh daily "$$s"; done
|
||||||
|
touch /tmp/ccollect/$$(ls /tmp/ccollect | head -n1).ccollect-marker
|
||||||
CCOLLECT_CONF=./conf ./ccollect.sh -a daily
|
CCOLLECT_CONF=./conf ./ccollect.sh -a daily
|
||||||
|
|
|
@ -110,7 +110,7 @@ delete_from_file()
|
||||||
[ $# -eq 1 ] && suffix="$1" && shift
|
[ $# -eq 1 ] && suffix="$1" && shift
|
||||||
while read to_remove; do
|
while read to_remove; do
|
||||||
set -- "$@" "${to_remove}"
|
set -- "$@" "${to_remove}"
|
||||||
if [ "$suffix" ]; then
|
if [ "${suffix}" ]; then
|
||||||
to_remove_no_suffix="$(echo ${to_remove} | sed "s/$suffix\$//")"
|
to_remove_no_suffix="$(echo ${to_remove} | sed "s/$suffix\$//")"
|
||||||
set -- "$@" "${to_remove_no_suffix}"
|
set -- "$@" "${to_remove_no_suffix}"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue