tunuifranken.info/pull-procedures-tssr.sh

16 lines
336 B
Bash
Raw Normal View History

#!/bin/bash
[ "$HOSTNAME" != lime2 ] || exit 1
2021-01-01 19:22:33 +01:00
for folder in ~/tssr/procedures/*; do
if [ -d "$folder" ]; then
name=$(basename "$folder")
2021-01-01 21:05:23 +01:00
if [[ "$name" = *chose* ]]; then
echo ignoring "$name"
else
echo found "$name"
cp "$folder"/procedure*.pdf ./procedures-tssr/procedure_"$name".pdf
fi
2021-01-01 19:22:33 +01:00
fi
done