Keruspe / GPaste

Clipboard management system
BSD 2-Clause "Simplified" License
773 stars 55 forks source link

Bug: bashism in configure #364

Open Euro20179 opened 3 years ago

Euro20179 commented 3 years ago

Problem

On line 2866 it uses ${with_gtk:0:1} which isn't posix, which is ok but, it would be better to have the shebang be #!/bin/bash or change this to a posix alternative.

The reason I am making this is because my /bin/sh is dash, which is also the default on ubuntu/debian.

Potential Solution

GTK_API="$(printf "%s" "$with_gtk" | grep '.' | sed 1q)"

Reason Im not making a pull request

I'm lazy.

Edit: seems there is more on line 18446, and possibly more.

Keruspe commented 2 years ago

configure is going away in favor of meson anyways