Skip to content

Commit

Permalink
added helper
Browse files Browse the repository at this point in the history
  • Loading branch information
dmalan committed Jan 18, 2024
1 parent ebaec05 commit bba678c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions opt/cs50/lib/help50/bash
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ if [[ "$output" =~ $regex ]]; then
fi
fi

regex="bash: \./(.*): Is a directory"
if [[ "$output" =~ $regex ]]; then
echo "Cannot execute a directory. Did you mean to \`cd\` into \`${BASH_REMATCH[1]}\` instead?"
fi

regex="bash: (./.*\.py): Permission denied"
if [[ "$output" =~ $regex ]]; then

Expand Down

0 comments on commit bba678c

Please sign in to comment.