powerpoint2git/hooks/post-merge
2023-02-24 16:27:12 +01:00

15 lines
287 B
Bash

#!/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