diff --git a/mybin/hshell.fish b/mybin/hshell.fish index 5de4be4ad7850fd362e76a6be4c5c42c642a0b12..99b2d4f37e3b3c80153246bf236791d9fbd008d1 100755 --- a/mybin/hshell.fish +++ b/mybin/hshell.fish @@ -47,6 +47,10 @@ end # sudo umount -l -f $mountdir # rmdir $mountdir # end + +if test -d $HOME/tmp/h + cd $HOME/tmp/h +end ' > /tmp/.hs.fish env RECOLIC_ENV_NAME=HSHELL fish --private -C 'source /tmp/.hs.fish' diff --git a/mybin/rwatchdog.sh b/mybin/rwatchdog.sh index cdb1976bd51534c69f1d91f26a0fa5d31f2f26c0..9bf0ac7af5e2ea1202ae8fa7a031e61fec90a264 100755 --- a/mybin/rwatchdog.sh +++ b/mybin/rwatchdog.sh @@ -42,7 +42,7 @@ function play_alarm_once () { "soft"*) alarm_fish_vol=70% alarm_fish_file=/usr/share/sounds/freedesktop/stereo/alarm-clock-elapsed.oga alarm_fish_beep_once=1 alarm.fish 0 local counter=$(echo "$alarm_state" | cut -d ' ' -f 2) - if [[ "$counter" =~ "^[0-9]+$" ]]; then + if [[ "$counter" =~ ^[0-9]+$ ]]; then if [[ "$counter" -le 1 ]]; then alarm_state=hard else