Skip to content

Instantly share code, notes, and snippets.

@bumper314
Created September 2, 2013 08:34
Show Gist options
  • Save bumper314/6410575 to your computer and use it in GitHub Desktop.
Save bumper314/6410575 to your computer and use it in GitHub Desktop.
Run IntegrityChecker on just the files in the current directory, not subdirectories
#!/bin/bash
TDIR="__HERE__"
if [ -d "$TDIR" ]; then
echo "ichere: tempdir $TDIR already exists, clean up first"
exit
fi
mkdir "$TDIR"
find . -type f -maxdepth 1 -exec ln "{}" "${TDIR}/" \;
cd "$TDIR"
ic $@
cd ..
rm -rf "$TDIR"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment