From cdb0c22c2c3624e9fdb2708a766420c19ac1f37d Mon Sep 17 00:00:00 2001 From: Randy Topliffe Date: Thu, 28 Aug 2014 10:44:28 -0400 Subject: [PATCH] Node hex value for folder creation - replace python script with node so that python isn't needed as a dependency --- fidget.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fidget.sh b/fidget.sh index f67db9e..a0c45e8 100755 --- a/fidget.sh +++ b/fidget.sh @@ -5,7 +5,7 @@ if [ "$FIDGETDIR" == "" ]; then fi if [ "$1" == "" ]; then - FIDGET=$FIDGETDIR/`python -c "import random; print hex(int(str(random.random())[2:10]))[2:]"` + FIDGET=$FIDGETDIR/`node -e "console.log(new Buffer(Math.random().toString(36).slice(2), 'utf8').toString('hex').slice(0, 7))"` else FIDGET=$FIDGETDIR/$1 fi