diff options
author | terminaldweller <thabogre@gmail.com> | 2022-03-24 21:26:54 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-03-24 21:26:54 +0000 |
commit | a2c685f04294da1da671bfb378514b12f8532c97 (patch) | |
tree | c39923a7f883cc0b4a478251b2cb3f6407e746e5 /sh | |
parent | irssi config (diff) | |
download | scripts-a2c685f04294da1da671bfb378514b12f8532c97.tar.gz scripts-a2c685f04294da1da671bfb378514b12f8532c97.zip |
scotch now leaves normal data alone. added battery to tmux.
Diffstat (limited to 'sh')
-rw-r--r-- | sh/lib.sh | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -53,3 +53,31 @@ copy_pam_mod_deps() { copy_to_stash $MOD_ABS "$DEP_LIST" $2 $3 done } + +dig() { + globalholecounter=0 + if test "$("ls" -A "/home/devi/devi/abbatoir")"; then + while [ 1 ]; do + if [ -d "/home/devi/devi/abbatoir/hole$globalholecounter" ]; then + # if its not empty + if test "$("ls" -A "/home/devi/devi/abbatoir/hole$globalholecounter")"; then + : + # if its empty + else + cd /home/devi/devi/abbatoir/hole$globalholecounter + break + fi + else + mkdir /home/devi/devi/abbatoir/hole$globalholecounter + cd /home/devi/devi/abbatoir/hole$globalholecounter + echo $globalholecounter + break + fi + $((globalholecounter=globalholecounter+1)) + done + else + mkdir /home/devi/devi/abbatoir + mkdir /home/devi/devi/abbatoir/hole$globalholecounter + cd /home/devi/devi/abbatoir/hole$globalholecounter + fi +} |