File tree 6 files changed +17
-7
lines changed
6 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ _set_ps1() {
107
107
VIRTUAL_ENV_NAME=$( basename " $VIRTUAL_ENV " )
108
108
fi
109
109
if [ " $VIRTUAL_ENV_NAME " = ' .venv' ]; then
110
- VIRTUAL_ENV_NAME=$( basename $( basename " $VIRTUAL_ENV " ) )
110
+ VIRTUAL_ENV_NAME=$( basename " $( basename " $VIRTUAL_ENV " ) " )
111
111
fi
112
112
PS1+=" \[\033[0;34m\]$VIRTUAL_ENV_NAME \[\033[00m\]"
113
113
fi
Original file line number Diff line number Diff line change 3
3
if command -v killall > /dev/null 2>&1 ; then
4
4
killall xautolock
5
5
elif pidof xautolock > /dev/null; then
6
- kill $( pidof xautolock)
6
+ kill " $( pidof xautolock) "
7
7
fi
8
8
9
9
if acpi -b 2> /dev/null | grep -q Battery; then
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ exec >> "$HOME/.xlog" 2>&1
8
8
# unlike other uses of xhost, this is safe since the kernel can check
9
9
# the actual owner of the calling process.
10
10
if command -v xhost > /dev/null 2>&1 ; then
11
- xhost +si:localuser:$( id -un) || :
11
+ xhost " +si:localuser:$( id -un) " || :
12
12
fi
13
13
14
14
# if no argument was passed, try and guess what command to start x with
@@ -24,7 +24,7 @@ if [ -z "$*" ]; then
24
24
exit 1
25
25
fi
26
26
else
27
- X_START_CMD=" $@ "
27
+ X_START_CMD=" $* "
28
28
fi
29
29
30
30
# use dbus-launch to spawn the session if available. this enables X applications
41
41
# TODO: find alternative solutions
42
42
if command -v ' ssh-agent' > /dev/null 2>&1 ; then
43
43
killall ssh-agent --user $USER
44
- eval $( ssh-agent -s)
44
+ eval " $( ssh-agent -s) "
45
45
fi
46
46
47
47
# configure external monitors
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ main() {
42
42
shift
43
43
done
44
44
45
- eval note_$func $@
45
+ eval " note_$func " " $@ "
46
46
}
47
47
48
48
note_new () {
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ VIDEO_BITRATE_MAX="3600k"
32
32
# twitch server in frankfurt, see http://bashtech.net/twitch/ingest.php for list
33
33
SERVER=" live-ams"
34
34
35
- ffmpeg -f x11grab -s $CAPTURE_RESOLUTION -r $FPS -i :0.0 -ar $AUDIO_RATE
35
+ ffmpeg -f x11grab -s $CAPTURE_RESOLUTION -r $FPS -i :0.0 -ar $AUDIO_RATE \
36
36
-f alsa -i hw:1,0 -f flv -ac 2 -vcodec libx264 -g $GOP -keyint_min $FPS \
37
37
-b:v $VIDEO_BITRATE_MAX -minrate $VIDEO_BITRATE_MIN -maxrate $VIDEO_BITRATE_MAX \
38
38
-pix_fmt yuv420p -s $OUTPUT_RESOLUTION -preset $PRESET -tune film \
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ : ${SEVERITY:= warning}
4
+
5
+ # we want to find scripts with a shell-like shebang
6
+ # AND files with the .sh extension
7
+ {
8
+ find ./configs ./scripts -type f -exec awk ' FNR == 1 && /^#!.*sh/{print FILENAME}' {} +
9
+ find ./configs ./scripts -type f -name ' *.sh'
10
+ } | sort | uniq | xargs -r shellcheck --shell=bash --severity " $SEVERITY "
You can’t perform that action at this time.
0 commit comments