mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-10-22 07:21:21 +00:00
Use built-in zsh functionality instead of subprocesses
This commit is contained in:
parent
90dd8f2afa
commit
c1ec721ea8
@ -6,8 +6,8 @@ if [ "$1" = "" ]; then
|
||||
fi
|
||||
|
||||
name="${1%.rb}"
|
||||
max_num=$(ls | grep test- | sort -r | head -n 1 | cut -c 6-8)
|
||||
let next_num=$max_num+1
|
||||
max_num=(test*(.On[1]))
|
||||
let next_num=${max_num[1][6,8]}+1
|
||||
|
||||
new_file="test-${next_num}${name}.rb"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user