mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-24 11:04:41 +02:00
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:
parent
35d7d39126
commit
16aad7f4c5
12 changed files with 15 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# shellcheck source=.lockvars
|
||||
# shellcheck disable=SC1091
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue