Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command not found when running from script #126

Open
r-shafi opened this issue Jun 23, 2022 · 1 comment
Open

Command not found when running from script #126

r-shafi opened this issue Jun 23, 2022 · 1 comment

Comments

@r-shafi
Copy link

r-shafi commented Jun 23, 2022

Everything works from the terminal, but not when running a scrip.

My script:

#!/bin/bash/

fancygit --theme-human
fancygit --disable-time
fancygit --disable-full-path 
fancygit --enable-double-line 

Output:
script.sh: line 23: fancygit: command not found

@tsadarsh
Copy link

I suppose you are running the script by: ./<your_file>.sh or bash ./<your_file>.sh

Instead, try running the script by sourcing: . ./<your_file>.sh or source ./<your_file>.sh

Did it work? 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants