From 3f46110acbc4f30c9ba12e6959ee9ca6ee6c1c7a Mon Sep 17 00:00:00 2001 From: emmett1 Date: Tue, 25 Jun 2019 00:32:02 +0800 Subject: [PATCH] fix --- scratch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scratch b/scratch index f9295c5..2f0bd7b 100755 --- a/scratch +++ b/scratch @@ -352,7 +352,7 @@ scratch_dependent() { scratch_own() { local arg - arg=${1/\/} + arg=$(echo $1 | sed "s/^\///") grep -R $arg $INDEX_DIR/*/.files | sed "s:$INDEX_DIR/::" | sed "s:/.files::" | tr : " " | column -t }