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

-bash: ./pi-power-button/script/install: File or folder does not exist. #28

Open
nmbrg opened this issue Jan 1, 2022 · 3 comments
Open

Comments

@nmbrg
Copy link

nmbrg commented Jan 1, 2022

Cloning the repo:
git clone https://github.com/Howchoo/pi-power-button.git
image

Running the following gets an error saying that the file or folder does not exist:
./pi-power-button/script/install
image
(unfortunately the text is in swedish, so ive translated it in the title of the issue)

looking in the folder with "ls" i can see the install file:
image

And this is on Raspberry Pi OS Lite (32-bit) running on a Raspberry Pi 4 Model B.

@nmbrg
Copy link
Author

nmbrg commented Jan 2, 2022

For some reason it worked today on both my raspberry pi's.

Did not change a thing, in fact ive not touched the raspberry pi in any way since it i created this issue.
Well well.. you can close this.

@prstrm
Copy link

prstrm commented Jan 5, 2022

Hej nmbrg!

From what I can see from your second screenshot it seems you already are inside of the $/pi-power-button/script/-directory when running the install-command. If I remember correctly dot-slash ./ in the beginning of the command tries to run the command from where currently are and in this case it wants to run ~/pi-power-button/script/pi-power-button/script/install which does not exist. While in that directory ./install would have done it I believe. At least I think this is the case here.

@nmbrg
Copy link
Author

nmbrg commented Jan 5, 2022

Hej nmbrg!

From what I can see from your second screenshot it seems you already are inside of the $/pi-power-button/script/-directory when running the install-command. If I remember correctly dot-slash ./ in the beginning of the command tries to run the command from where currently are and in this case it wants to run ~/pi-power-button/script/pi-power-button/script/install which does not exist. While in that directory ./install would have done it I believe. At least I think this is the case here.

you are probably correct. thanks for pointing that out. now atleast i know what to check for the next time i get an error like that trying to run something on my pi. :)

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