altered return codes for dupe/missing

pull/945/head
el-tocino 2017-08-02 01:29:18 -05:00
parent 738849a30e
commit 98ee790d33
1 changed files with 2 additions and 2 deletions

View File

@ -100,11 +100,11 @@ while [[ $# -gt 0 ]] ; do
if [[ "${skill}" == *$'\n'* ]]; then
echo -e "Your search has multiple choices\n\n$skill" | sed 's/.*://g'
return 3
return 301
else
if [[ -z "${git_line}" ]]; then
echo "A ${iskill} skill was not found"
return 3
return 302
fi
repo_line=$(($git_line + 2))
repo=$(list | sed -n $repo_line'{p;q;}' | sed 's/[[:space:]]//g' | sed 's/url=//g')