1
0
Fork 0
forked from ahurac/dotfiles

Erreurs ShellCheck

This commit is contained in:
Hippolyte Chauvin 2023-05-14 16:02:54 +02:00
parent 6b5312adff
commit 2f27db6afe
6 changed files with 7 additions and 7 deletions

View file

@ -39,9 +39,10 @@ for file in **/*".${format_in}"; do
while [ "$(jobs -p | wc -l)" -ge 10 ]; do
sleep 1
done
echo "$(basename "$file")"
basename "$file"
output_file="${output}/$(dirname "$file")/$(basename "${file}" ".${format_in}").${format_out}"
mkdir -p "$(dirname "${output_file}")"
# shellcheck disable=SC2086
ffmpeg -loglevel quiet -i "$file" $options "$output_file" &
done

View file

@ -58,7 +58,7 @@ create() {
fi
if ! vnc_running; then
screen -d -m wayvnc -o "$vscreen_name" 0.0.0.0
screen -d -m wayvnc -o "$vscreen_name" "$listen_address"
fi
}

View file

@ -1,6 +1,3 @@
#!/bin/sh
exec printf \
"$@"
"screenshot-%s.${1:-png}" \
"$(date +"%Y_%m_%d-%N")"
exec printf "$@" "screenshot-%s.${1:-png}" "$(date +"%Y_%m_%d-%N")"

View file

@ -22,6 +22,7 @@ function separator {
# Loop
for pm in "${commands_d}/"*; do
separator "$(basename "$pm")"
# shellcheck source=/dev/null
source "$pm"
done

View file

@ -1,4 +1,5 @@
#!/bin/sh
# shellcheck disable=SC2317
# cd to the local VNC directory, exit if it fails
cd "${HOME}/.vnc" || exit 5

View file

@ -1,4 +1,4 @@
#!/bin/sh -x
#!/bin/bash -x
# Waybar wrapper to reload it anytime the
# configuration is edited