.git broken, restart

This commit is contained in:
dangerboot
2026-01-23 08:55:18 +01:00
commit d1be8ebdca
206 changed files with 8431 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/bin/bash
mediaspi ()
{
if [ -z $1 ]; then
echo "usage: $0 $DIR_NAME";
return 1;
fi;
BINAME="collector_bin";
DEST="$HOME/perso/${BINAME}";
DIR="${1}";
mkdir -p $DEST;
mkdir $DIR;
if [ $? -ne 0 ]; then
echo "$DIR exists, must be deleted (will be anyway)";
return 1;
fi;
find . -type f -regextype egrep -iregex ".*$MEDIA_REG" -exec cp --parents -u {} -t $DIR \;;
cp -apu $DIR -t $DEST;
rm -rf $DIR
}
mediaspi "$@"