Test pour écran OLED 128 x 64 SSD1306 avec sonde thermique DS18B20

Committer:
diltech
Date:
Sat May 28 13:22:32 2022 +0000
Revision:
0:8ae2868c8c6c
Projet initial

Who changed what in which revision?

UserRevisionLine numberNew contents of line
diltech 0:8ae2868c8c6c 1 #!/bin/sh
diltech 0:8ae2868c8c6c 2 #
diltech 0:8ae2868c8c6c 3 # An example hook script to make use of push options.
diltech 0:8ae2868c8c6c 4 # The example simply echoes all push options that start with 'echoback='
diltech 0:8ae2868c8c6c 5 # and rejects all pushes when the "reject" push option is used.
diltech 0:8ae2868c8c6c 6 #
diltech 0:8ae2868c8c6c 7 # To enable this hook, rename this file to "pre-receive".
diltech 0:8ae2868c8c6c 8
diltech 0:8ae2868c8c6c 9 if test -n "$GIT_PUSH_OPTION_COUNT"
diltech 0:8ae2868c8c6c 10 then
diltech 0:8ae2868c8c6c 11 i=0
diltech 0:8ae2868c8c6c 12 while test "$i" -lt "$GIT_PUSH_OPTION_COUNT"
diltech 0:8ae2868c8c6c 13 do
diltech 0:8ae2868c8c6c 14 eval "value=\$GIT_PUSH_OPTION_$i"
diltech 0:8ae2868c8c6c 15 case "$value" in
diltech 0:8ae2868c8c6c 16 echoback=*)
diltech 0:8ae2868c8c6c 17 echo "echo from the pre-receive-hook: ${value#*=}" >&2
diltech 0:8ae2868c8c6c 18 ;;
diltech 0:8ae2868c8c6c 19 reject)
diltech 0:8ae2868c8c6c 20 exit 1
diltech 0:8ae2868c8c6c 21 esac
diltech 0:8ae2868c8c6c 22 i=$((i + 1))
diltech 0:8ae2868c8c6c 23 done
diltech 0:8ae2868c8c6c 24 fi