Skip to content

Commit

Permalink
fix for broken variables
Browse files Browse the repository at this point in the history
  • Loading branch information
j00ch committed Jan 7, 2021
1 parent ef078c2 commit 6d3180e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ WATCHDOG_INTERVAL="3h"
# Options for update dialog, timeout sets the dialog confirmation timeout (update will start after that).
# Postponed sets the time for which an update is postponed after canceling.
TIMEOUT="10"
TIMOUT_UNIT="m"
TIMEOUT_UNIT="m"
POSTPONED="3h"

# User commands to run after compiling kernels, example: 'echo "Autobuild done" | mail -s "Autobuild done" [email protected]'
Expand Down
8 changes: 4 additions & 4 deletions src/linux-ck-autobuild-daemon
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# linux-ck-autobuild-daemon.sh
VERSION=0.1.1
VERSION=0.1.2
# Author: Jochum D, jooch (at) gmx (dot) com
# License: GPL3
# About: This script is part of linux-ck-autobuild, checks for new versions and automatically
Expand All @@ -22,8 +22,8 @@ function dialog {
if zenity --text="New kernel version detected ($latest_version), build wil start in $TIMEOUT$TIMEOUT_UNIT" --title="$window_title" --progress --percentage=0 --auto-close; then
./linux-ck-autobuild
else
zenity --info --width=350 --title="$window_title" --text="Update postponed for $postponed"
sleep $postponed
zenity --info --width=350 --title="$window_title" --text="Update postponed for $POSTPONED"
sleep $POSTPONED
fi
return
}
Expand All @@ -32,7 +32,7 @@ if [ -r /home/$USER/.config/$program_name/$program_name.conf ]; then
. /home/$USER/.config/$program_name/$program_name.conf
while true
do
latest_version=$(curl -s https://aur.archlinux.org/packages/linux-ck | grep -A 1 'pkgdetails" class="box' | grep -Po '\d.\d.\D.')
latest_version=$(curl -s https://aur.archlinux.org/packages/linux-ck | grep -A 1 'pkgdetails" class="box' | grep -Po '\d.\d.\D.\D.')
last_build=$(cat $BUILDDIR/linux-ck/.last_build)

echo "Checking latest kernel version"
Expand Down

0 comments on commit 6d3180e

Please sign in to comment.