Skip to content

Instantly share code, notes, and snippets.

View dvdvck's full-sized avatar

David Retana dvdvck

View GitHub Profile
@dvdvck
dvdvck / tmp_npm.sh
Last active August 29, 2015 14:00 — forked from kevinastone/tmp_npm.sh
#!/bin/bash
BASE_DIR=${TMPDIR:-/var/tmp}
ORIG_DIR=$PWD
HASH_CMD="md5sum"
DIR_NAME=`echo $PWD | $HASH_CMD | cut -f1 -d " "`
TMP_DIR=$BASE_DIR/$DIR_NAME
mkdir -p $TMP_DIR