mirror of
https://github.com/kevinnlsamuel/bak-old.git
synced 2025-12-06 10:05:58 +05:30
- rearranged comments around debug brace expansion so it doesn't look bad when printed due to the `-v` flag
29 lines
513 B
Bash
Executable File
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 |