123456789101112131415161718192021222324 |
- #!/bin/bash
- # Coding: utf-8
- # Editor: kate
- # Created 2022-12-02
- #_sudo_apt_install_
- #_sudo_dpkg_i_
- source $HOME/.SCR/lib.sh
- fun_log_dir_create $0 365
- read hash_from_file < "$dir_script/DATA1_as.m3u"
- new_hash="$(sha1sum $HOME/DATA1/backup/tvbox/backups/lists/tmp3/as.m3u | cut -f1 -d " ")"
- fun_echo_variable hash_from_file new_hash
- if [ "${new_hash}" != "${hash_from_file}" ] # if the hashes are not equal
- then
- echo $new_hash > "$dir_script/DATA1_as.m3u"
- ,speech_en.sh "Playlist in TV box updated"
- fi
|