make the command independent of current directory

This commit is contained in:
Oliver Lew
2020-05-25 14:35:14 +08:00
parent 235bcc0189
commit 7beaca8f4f
+1 -1
View File
@@ -1,5 +1,5 @@
#!/bin/sh
master=$(git ls-tree -r --name-only master PAT*/)
master=$(git ls-tree -r --name-only --full-tree master | grep "\.c")
markdown=$1
id=$(basename "${markdown%.md}")
index=${id#[a-z]}