aniketpanjwani / chomper

Internet blocker for the Linux desktop.
https://addictedto.tech/chomper/
GNU General Public License v3.0
356 stars 43 forks source link

Move bash executable comment to top of script to allow for fish shell execution #40

Open davetorbeck opened 6 years ago

davetorbeck commented 6 years ago
# Copyright: (c) 2018, Aniket Panjwani <aniket@addictedto.tech>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#!/bin/bash

The first two comment lines for the license in the chomper/bin/chomper bash script will cause an error when executed in fish shell.

$ /home/david/chomper/bin/chomper nosocial 3
Failed to execute process '/home/david/chomper/bin/chomper'. Reason:
exec: Exec format error
The file '/home/david/chomper/bin/chomper' is marked as an executable but could not be run by the operating system.

Moving #!bin/bash/ to the top of the script allows execution within fish shell.

CLAassistant commented 6 years ago

CLA assistant check
All committers have signed the CLA.