aboutsummaryrefslogtreecommitdiff
path: root/functions/renlow.fish
diff options
context:
space:
mode:
authorDeposite Pirate2026-02-16 02:22:00 +0100
committerDeposite Pirate2026-02-16 02:22:00 +0100
commite5d665865e7cc800bb4deecd6aedcf3015e65b10 (patch)
tree831b1c0adbd2aa8d2bb80ff2ae8c6bd7f4d8513d /functions/renlow.fish
parent7cfcd5a663a61e14de445426ea3f794e6b91fdda (diff)
Best effort dependency resolution
Add a new check_install function that checks if a tool is installed and tries to install it on a best effort basic. Modify all scripts that benefit from it. Small indentation and correctness fixes. modified: functions/7za.fish modified: functions/alert.fish new file: functions/check_install.fish modified: functions/lscmd.fish modified: functions/rchmod.fish modified: functions/renlow.fish modified: functions/rlsxattr.fish modified: functions/rsdos.fish modified: functions/rsmac.fish modified: functions/rsxattr.fish modified: functions/uz.fish
Diffstat (limited to 'functions/renlow.fish')
-rw-r--r--functions/renlow.fish5
1 files changed, 0 insertions, 5 deletions
diff --git a/functions/renlow.fish b/functions/renlow.fish
index 98b0e4c..1581550 100644
--- a/functions/renlow.fish
+++ b/functions/renlow.fish
@@ -1,10 +1,5 @@
function renlow --description 'Rename all files and directories with lowercase characters'
-if not command -sq 'find'
- echo "Can't find find."
- return 1
-end
-
for file in (find . -type f)
set -l element (string split -r -m1 / $file)
mv $file $element[1]/(string lower $element[2])