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

capture-sdcard.sh: 8: Syntax error: "(" unexpected #4

Open
GuidoBartoli opened this issue Feb 22, 2023 · 1 comment
Open

capture-sdcard.sh: 8: Syntax error: "(" unexpected #4

GuidoBartoli opened this issue Feb 22, 2023 · 1 comment

Comments

@GuidoBartoli
Copy link

GuidoBartoli commented Feb 22, 2023

Launching the script as reported in the README gives the following error:

$ ./capture-sdcard.sh /dev/mmcblk0 raspberry.img
./capture-sdcard.sh: 8: Syntax error: "(" unexpected

The device is correct (I checked with fdisk -l) and I installed the required git and xz-utils packages. My system is Linux Mint 21.1 (Cinnamon Edition).

Thanks

@phatpaul
Copy link

https://unix.stackexchange.com/questions/45781/shell-script-fails-syntax-error-unexpected

TLDR:
run it like this until the author fixes the shebang:

bash ./capture-sdcard.sh /dev/mmcblk0 raspberry.img

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