79569644

Date: 2025-04-11 20:12:45
Score: 2.5
Natty:
Report link

this line might return null

echo "SOURCE: ${BASH_SOURCE%/*}"

so you could do

DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

echo "$DIR"

instead

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: tierthetora