Files
bak-old/install.sh
kevinnls 0e74eacc1e set up for debugging/dev
- rearranged comments around debug brace expansion so it doesn't look bad when printed due to the `-v` flag
2021-03-15 13:35:39 +05:30

29 lines
513 B
Bash
Executable File

#!/bin/bash
###################################
# install script for bak-old.sh #
# authored by github.com/kevinnls #
# - another Linux user tired of #
# type cp file file.bak #
###################################
work_dir=/tmp/bak-old_installation/
debug(){ ### function to call when $DEBUG is set
set -xv
}
### enable debugging if ###
${DEBUG+debug} ###
### $DEBUG is set ###
# create dir for installation work
mkdir -p $work_dir
cd $work_dir
# cleanup
cd $HOME
rm -rf $work_dir