mathix420 / free-the-web-apps

Turn any website into an app in seconds!
https://ftwa.mathix.dev
GNU General Public License v3.0
267 stars 4 forks source link

Update shebang to improve portability #1

Closed darshanCommits closed 6 days ago

darshanCommits commented 6 days ago

Changed the shebang from /usr/bin/bash to /usr/bin/env bash.

Should fix the error in nixos. Also automated PATH detection for browsers using which. Linux only.

vercel[bot] commented 6 days ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
free-the-web-apps ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 10, 2024 4:26am
darshanCommits commented 6 days ago

Should have made 2 separate commits. This works or should I revert and do so?

darshanCommits commented 5 days ago

Alright. Although I'd still look into a cli tool for automation sake.

mathix420 commented 5 days ago

This can be a good idea! Those verified links should work without any time limit, can this solve your use case?

sh -c "$(curl -fsSL 'https://ftwa.mathix.dev/v/excalidraw?os=linux&bw=chrome&path=%2Fusr%2Fbin%2Fgoogle-chrome-stable')"

It's pretty similar to installing something like oh-my-zsh

darshanCommits commented 5 days ago

yep. This will do. Thanks.