dip

old school recipes for janitorial snafu.
git clone git://git.ricketyspace.net/dip.git
Log | Files | Refs

commit 8b203ccd6c5d798a294cb55eb1dd3d044daeca19
parent 935fcdfb9e8008900308f3dcfe1c300e095c1491
Author: rsiddharth <s@ricketyspace.net>
Date:   Tue,  7 Aug 2018 21:46:03 +0000

usr/local: Update bin/tball (local).

Make all variables `local` in tb function.

Diffstat:
usr/local/bin/tball | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/usr/local/bin/tball b/usr/local/bin/tball @@ -55,27 +55,27 @@ clean_tmp() { } tb() { - SRC=${1/#\~/$HOME} - BDEST=${2/#\~/$HOME} + local SRC=${1/#\~/$HOME} + local BDEST=${2/#\~/$HOME} parse_src $SRC parse_bdest $BDEST # Get basename. - BN=$(basename $SRC) + local BN=$(basename $SRC) # Setup destination dir. setup_dest $BDEST $BN # SUFFIX (current unix time) - SUFFIX=$(date '+%s') + local SUFFIX=$(date '+%s') # Make temp dir. - TMP_DIR=$(mktemp -d --suffix=-tball) + local TMP_DIR=$(mktemp -d --suffix=-tball) [[ $? == 1 ]] && exit 1 # Make ball name - BALL=$TMP_DIR/$BN.$SUFFIX.tar.xz + local BALL=$TMP_DIR/$BN.$SUFFIX.tar.xz # Make ball. echo 'Making '$BALL'...'