From 41c081e96ea877055d7418c6775d6e755784379f Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Thu, 2 Aug 2018 09:16:13 +0100 Subject: minor fix in burrow --- burrow | 9 ++------- url_to_id | 9 +++++++++ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/burrow b/burrow index 8138ca5..9335ba8 100755 --- a/burrow +++ b/burrow @@ -15,7 +15,7 @@ ### ###------------------------------------------------ ### -### (C) Vincenzo 'KatolaZ' Nicosia +### (C) 2018 Vincenzo 'KatolaZ' Nicosia ### ### Use, modify, redistribute under the terms of the GNU General ### Public License version 3 or, at your option, any other version. @@ -27,14 +27,9 @@ get_dirs(){ #IFS=$'\t\n' IFS="|" src_dir=$(echo "${src_id}" | cut -c -2) + touch "${src_dir}/${src_id}" while read name sel host port; do -## echo " --- name: \"$name\"" -## echo " --- sel: \"$sel\"" -## echo " --- host: \"$host\"" -## echo " --- port: \"$port\"" TYPE=$(echo "$name" | cut -c 1) -## echo " --- TYPE \"$TYPE\"" -## echo "$TYPE, $name, $sel, $host, $port" port=$(echo $port | sed -r -e 's/\r//g') dir_id=$(echo "${TYPE}|${sel}|${host}|${port}" | sed 's/^1||/1|\/|/g') dest_id=$(echo "${dir_id}" | sha256sum | cut -d " " -f 1 ) diff --git a/url_to_id b/url_to_id index 4d96442..f9317e6 100755 --- a/url_to_id +++ b/url_to_id @@ -14,6 +14,15 @@ ## TYPE|SEL|HOST|PORT|SHA256 ## ## which is understood by `burrow` +## +## ----------------------- +## +## (C) 2018 Vincenzo 'KatolaZ' Nicosia +## +## Use, modify, redistribute under the terms of the GNU General +## Public License version 3 or, at your option, any other version. +## +## ### -- cgit v1.2.3