Open mbucc opened 7 years ago
Bash doesn't come on Alpine by default, so:
bbox:~/src/shmig$ ./shmig -h -ash: ./shmig: not found
Tried changing shebang to #!/bin/sh, but that failed with:
#!/bin/sh
./shmig: line 169: syntax error: unexpected "(" (expecting "}")
which refers to
bbox:~/src/shmig$ grep -n ^ shmig | grep -C 3 169: 166: 167: "${TYPE}_cli" "$show" | grep -F -qx "$SCHEMA_TABLE" 168: 169: local status=("${PIPESTATUS[@]}") 170: 171: [[ ${status[0]} -ne 0 ]] && return 1 172:
Quick fix: apk add bash
apk add bash
The <<< redirection with sqlite_cli also fails.
<<<
# sqlite3 -bail -batch elmarelli-api.db <<< 'select name from sqlite_master' -ash: syntax error: unexpected redirection #
Bash doesn't come on Alpine by default, so:
Tried changing shebang to
#!/bin/sh
, but that failed with:which refers to