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 while [ "$(jobs -p | wc -l)" -ge 10 ]; do
sleep 1 sleep 1
done done
echo "$(basename "$file")" basename "$file"
output_file="${output}/$(dirname "$file")/$(basename "${file}" ".${format_in}").${format_out}" output_file="${output}/$(dirname "$file")/$(basename "${file}" ".${format_in}").${format_out}"
mkdir -p "$(dirname "${output_file}")" mkdir -p "$(dirname "${output_file}")"
# shellcheck disable=SC2086
ffmpeg -loglevel quiet -i "$file" $options "$output_file" & ffmpeg -loglevel quiet -i "$file" $options "$output_file" &
done done

View file

@ -58,7 +58,7 @@ create() {
fi fi
if ! vnc_running; then 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 fi
} }

View file

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

View file

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

View file

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

View file

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