Adapt shebangs

Convert all shebangs to /usr/bin/env bash, if bash is really required in
the script. Otherwise convert it to /bin/sh.

/bin/bash is not available on all systems, while /usr/bin/env bash and
/bin/sh are.
This commit is contained in:
Benedikt Heine 2018-05-23 13:33:43 +02:00 committed by Felix Buehler
parent 35d7d39126
commit 16aad7f4c5
12 changed files with 15 additions and 4 deletions

View file

@ -1,4 +1,5 @@
#! /bin/bash
#!/bin/sh
FOCUSED=$(xprop -root _NET_ACTIVE_WINDOW | awk -F' ' '{print $NF}')
if xprop -id ${FOCUSED} _NET_WM_STATE | grep -q _NET_WM_STATE_FULLSCREEN; then
exit 1

View file

@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/usr/bin/env bash
# shellcheck source=.lockvars
# shellcheck disable=SC1091