diff --git a/load-multiple-federations.sh b/load-multiple-federations.sh index 3f32ab0..0e9914e 100755 --- a/load-multiple-federations.sh +++ b/load-multiple-federations.sh @@ -9,11 +9,7 @@ METADATA_TMP=`tempfile` FIXTURE_TMP=`tempfile --suffix=.json` TIMEOUT=30 -function cleanup { - rm -f $METADATA_TMP $FIXTURE_TMP -} - -trap "cleanup" EXIT +trap "rm -f $METADATA_TMP $FIXTURE_TMP" EXIT if [ -f ]; then . /etc/default/authentic2 @@ -72,6 +68,8 @@ chmod +r $METADATA_TMP # Load metadata /usr/bin/authentic2-ctl sync-metadata --source=$SOURCE --sp -v1 $METADATA_TMP + +rm -f $METADATA_TMP $FIXTURE_TMP } for config in /etc/authentic2/federations.d/*.sh; do