diff options
author | friendica <info@friendica.com> | 2014-06-18 17:04:19 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-06-18 17:04:19 -0700 |
commit | dd042f4f0986155e1d4cea63024f6efc5d1c8cdc (patch) | |
tree | 16f94e35e595c8c040c2b4e737b9b8e74f491b68 | |
parent | c16b403cf7adf293a0c51d127d38d5794f9c2b36 (diff) | |
download | volse-hubzilla-dd042f4f0986155e1d4cea63024f6efc5d1c8cdc.tar.gz volse-hubzilla-dd042f4f0986155e1d4cea63024f6efc5d1c8cdc.tar.bz2 volse-hubzilla-dd042f4f0986155e1d4cea63024f6efc5d1c8cdc.zip |
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".
-rwxr-xr-x | util/shredder/JSON.sh (renamed from util/shred/JSON.sh) | 0 | ||||
-rwxr-xr-x | util/shredder/OAuth.sh (renamed from util/shred/OAuth.sh) | 0 | ||||
-rwxr-xr-x | util/shredder/ShredOAuth.sh (renamed from util/shred/ShredOAuth.sh) | 0 | ||||
-rwxr-xr-x | util/shredder/shredder (renamed from util/shred/shred) | 3 |
4 files changed, 2 insertions, 1 deletions
diff --git a/util/shred/JSON.sh b/util/shredder/JSON.sh index 65f5f1f66..65f5f1f66 100755 --- a/util/shred/JSON.sh +++ b/util/shredder/JSON.sh diff --git a/util/shred/OAuth.sh b/util/shredder/OAuth.sh index 4be4ed35b..4be4ed35b 100755 --- a/util/shred/OAuth.sh +++ b/util/shredder/OAuth.sh diff --git a/util/shred/ShredOAuth.sh b/util/shredder/ShredOAuth.sh index 76858d73c..76858d73c 100755 --- a/util/shred/ShredOAuth.sh +++ b/util/shredder/ShredOAuth.sh diff --git a/util/shred/shred b/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 |