diff options
author | Matthew Lemon <y@yulqen.org> | 2023-10-17 13:10:41 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-10-17 13:10:41 +0100 |
commit | 658ec6b1bdb793148dc01ece2cf754c245eb5d76 (patch) | |
tree | ae2f32d5be15c12bc7bb16b8200c0dc6cda7fcc7 /curlist.sh | |
parent | 495aa3b8d3b274a824b0752465fe9c7d4db92691 (diff) | |
parent | 115f7acbd49591f4ce2d9efca7019b511a0451b3 (diff) |
Merge branch 'master' of git.sr.ht:~yulqen/bash-scripts
Diffstat (limited to 'curlist.sh')
-rwxr-xr-x | curlist.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/curlist.sh b/curlist.sh new file mode 100755 index 0000000..6720b91 --- /dev/null +++ b/curlist.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +curdir=~/Documents/Notes/current/ + +if [[ -d $curdir ]]; then + ls "$curdir/" +else + echo "The ~/Documents/Notes/current directory does not exist. Please create it to proceed." + exit 1 +fi |