Make custom shell scripts shellcheck clean

This commit is contained in:
Daniel - 2020-08-23 12:10:29 +02:00
parent a709a2145f
commit 880db2d7a3
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
function do-startx() {
startx $@ >| ~/.xsession-log 2>&1 &
startx "$@" >| ~/.xsession-log 2>&1 &
sleep 1
vlock
}
@ -10,8 +10,10 @@ function encode-with-ffmpeg() {
movie=$1
output=$2
ffmpeg -y -i $movie -c:v libx264 -preset veryslow -b:v 630k -pass 1 -c:a aac -b:a 128k -f mp4 /dev/null && \
ffmpeg -i $movie -c:v libx264 -preset veryslow -b:v 630k -pass 2 -c:a aac -b:a 128k $output
ffmpeg -y -i "$movie" -c:v libx264 -preset veryslow -b:v 630k -pass 1 -c:a aac -b:a 128k -f mp4 /dev/null && \
ffmpeg -i "$movie" -c:v libx264 -preset veryslow -b:v 630k -pass 2 -c:a aac -b:a 128k "$output"
}
function run-remote-apt-upgrade() {
host=$1