mirror of
https://github.com/xlucn/PAT.git
synced 2026-10-03 00:23:15 +08:00
make the command independent of current directory
This commit is contained in:
+1
-1
@@ -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]}
|
||||
|
||||
Reference in New Issue
Block a user