aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xgist2
1 files changed, 1 insertions, 1 deletions
diff --git a/gist b/gist
index 2c16c50..edf8452 100755
--- a/gist
+++ b/gist
@@ -505,7 +505,7 @@ _repo_url() {
505 505
506# Get gist id from index files 506# Get gist id from index files
507_gist_id() { 507_gist_id() {
508 read -r ${INDEX_FORMAT[@]} <<<"$(sed -ne "/$1 / p" $INDEX)" 508 read -r ${INDEX_FORMAT[@]} <<<"$(sed -ne "/^$1 / p" $INDEX)"
509 GIST_ID=${url##*/} 509 GIST_ID=${url##*/}
510 if [[ -z $GIST_ID || ! $1 =~ [0-9a-z]+ ]]; then 510 if [[ -z $GIST_ID || ! $1 =~ [0-9a-z]+ ]]; then
511 echo -e "$(hint=false _show_list | sed -Ee 's/^( *[0-9a-z]+)/\\e[5m\1\\e[0m/')" 511 echo -e "$(hint=false _show_list | sed -Ee 's/^( *[0-9a-z]+)/\\e[5m\1\\e[0m/')"