From dd042f4f0986155e1d4cea63024f6efc5d1c8cdc Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 18 Jun 2014 17:04:19 -0700 Subject: [PATCH] Turns out Linux has a shred command in /usr/bin and its purpose is to over-write files so we don't want to invoke it accidentally. So as not to cause confusion and issues we will rename ours to "shredder". Aussies are of course allowed to alias this to "shredda". --- util/{shred => shredder}/JSON.sh | 0 util/{shred => shredder}/OAuth.sh | 0 util/{shred => shredder}/ShredOAuth.sh | 0 util/{shred/shred => shredder/shredder} | 3 ++- 4 files changed, 2 insertions(+), 1 deletion(-) rename util/{shred => shredder}/JSON.sh (100%) rename util/{shred => shredder}/OAuth.sh (100%) rename util/{shred => shredder}/ShredOAuth.sh (100%) rename util/{shred/shred => shredder/shredder} (99%) diff --git a/util/shred/JSON.sh b/util/shredder/JSON.sh similarity index 100% rename from util/shred/JSON.sh rename to util/shredder/JSON.sh diff --git a/util/shred/OAuth.sh b/util/shredder/OAuth.sh similarity index 100% rename from util/shred/OAuth.sh rename to util/shredder/OAuth.sh diff --git a/util/shred/ShredOAuth.sh b/util/shredder/ShredOAuth.sh similarity index 100% rename from util/shred/ShredOAuth.sh rename to util/shredder/ShredOAuth.sh diff --git a/util/shred/shred b/util/shredder/shredder similarity index 99% rename from util/shred/shred rename to util/shredder/shredder index 2fd913d65..b8d298175 100755 --- a/util/shred/shred +++ b/util/shredder/shredder @@ -113,10 +113,11 @@ load_config () { [[ -f "$FCLI_RC" ]] && . "$FCLI_RC" || show_config_help 1 THISDIR=$(dirname $0) - if [ $THISDIR != '' ]; then THISDIR=. ; fi + if [ $THISDIR == '' ]; then THISDIR=. ; fi PATH=$THISDIR:$PATH + # Source ShredOAuth.sh OAuth_sh=$(which ShredOAuth.sh) (( $? != 0 )) && echo 'Unable to locate ShredOAuth.sh! Make sure it is in searching PATH.' && exit 1