Created
September 2, 2013 08:34
-
-
Save bumper314/6410575 to your computer and use it in GitHub Desktop.
Run IntegrityChecker on just the files in the current directory, not subdirectories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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