scripts

misc scripts and tools
git clone git://git.2f30.org/scripts
Log | Files | Refs

commit 855b424096b5fc74b1294f0d553b814b218da751
parent 3526242442c55b256f8f784f417cc89a20a46f53
Author: cipher <haris@2f30.org>
Date:   Tue, 22 Apr 2014 17:50:18 +0300

Fix for new namespace changes

Diffstat:
M4chanfetch | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/4chanfetch b/4chanfetch @@ -18,7 +18,7 @@ pullthread() { return 1 fi - egrep '//i.4cdn.org/[a-z0-9]+/src/([0-9]*).(jpg|png|gif|webm)' ${tmp} -o | uniq > ${tmp2} + egrep '//i.4cdn.org/[a-z0-9]+/([0-9]*).(jpg|png|gif|webm)' ${tmp} -o | uniq > ${tmp2} sed 's|//i|http://i|g' ${tmp2} > ${tmp} @@ -35,7 +35,7 @@ while :; do done=1 for arg in "$@"; do - path=$(echo "$arg" | egrep -o '([0-9]*)$' | sed 's/\.html//g') + path=$(basename "$arg") mkdir -p ${path} cd ${path}