Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If in bash, you can use the 'allexport' option and source the .env without having to add 'export' in front of every line:

    #!/bin/bash
    
    set -o allexport
    . .env
    set +o allexport
    cmd


TIL thanks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: