powerpoint2git/hooks/post-merge

16 lines
287 B
Text
Raw Normal View History

2023-02-24 15:27:12 +00:00
#!/bin/bash
echo "Running Post-Merge"
dirs=$(find -type d -iname "*.pptx")
for d in $dirs
do
echo "creating Powerpoint for $d"
cd $d
foldername="$(basename $d)"
echo "foldername=$foldername"
filename="${foldername:1}"
echo "filename=$filename"
zip -r ../$filename *
cd ..
done