Created
November 2, 2011 01:53
-
-
Save joecannatti/1332641 to your computer and use it in GitHub Desktop.
epub_permission.sh
This file contains hidden or 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
function kk { | |
echo "" | |
echo "The epubs on your desktop are:" | |
cd ~/Desktop; | |
index=0 | |
FILES=() | |
for i in $(find . -name \*epub); do | |
unset done | |
if [ -x $i ]; then | |
done="(already converted)" | |
fi | |
index=`expr $index + 1` | |
echo $index")" $i $done | |
FILES[$index]=$i | |
done | |
echo "" | |
echo "Which file would you like to convert?" | |
read count | |
file_to_convert=${FILES[count]} | |
chmod -v +x $file_to_convert | |
if [ -x "$file_to_convert" ]; then | |
echo "S'ALL GOOD!!" | |
fi | |
echo "" | |
echo "" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment