summaryrefslogtreecommitdiff
path: root/printpath
diff options
context:
space:
mode:
authorfilip <“filip.rabiega@gmail.com”>2025-10-10 19:10:02 +0200
committerfilip <“filip.rabiega@gmail.com”>2025-10-10 19:10:02 +0200
commit807de46d3a3cbef9a3c3c104f6db87b142e6eed5 (patch)
tree61a1a9bc26daad623ce6c04bb66ae39133ef0261 /printpath
parent08204fc9b9f63015a1dc083b471c6839818eeb59 (diff)
downloadchadscripts-807de46d3a3cbef9a3c3c104f6db87b142e6eed5.tar.gz
chadscripts-807de46d3a3cbef9a3c3c104f6db87b142e6eed5.tar.bz2
chadscripts-807de46d3a3cbef9a3c3c104f6db87b142e6eed5.zip
used shfmt
Diffstat (limited to 'printpath')
-rwxr-xr-xprintpath8
1 files changed, 4 insertions, 4 deletions
diff --git a/printpath b/printpath
index 55a3212..3c59e8f 100755
--- a/printpath
+++ b/printpath
@@ -3,8 +3,8 @@
# This script is slow, but it works
IFS=:
for dir in $PATH; do
- [ -d "$dir" ] || continue
- for file in "$dir"/* "$dir"/.*; do
- [ -f "$file" ] && [ -x "$file" ] && basename "$file"
- done
+ [ -d "$dir" ] || continue
+ for file in "$dir"/* "$dir"/.*; do
+ [ -f "$file" ] && [ -x "$file" ] && basename "$file"
+ done
done | sort -u