Drop basename in favor of Bash strings
Convert `var=$(basename $file)` to `var="${file##*/}"`
This commit is contained in:
@@ -15,7 +15,7 @@ function time-machine-list-machines() {
|
||||
local tmdest="$(time-machine-destination)/Backups.backupdb"
|
||||
|
||||
find "$tmdest" -maxdepth 1 -mindepth 1 -type d | grep -v "/\." | while read line ; do
|
||||
echo "$(basename "$line")"
|
||||
echo "${line##*/}"
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user