Skip to content

Commit

Permalink
ffac-weeklyreboot: fix all shellcheck issues
Browse files Browse the repository at this point in the history
  • Loading branch information
grische authored and maurerle committed Nov 24, 2023
1 parent c1e32ce commit 5ead058
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/sh
DELAYTIME=$(</dev/urandom sed 's/[^[:digit:]]\+//g' | head -c4)
logger -s -t "ffac-weeklyreboot" -p 5 "sheduled reboot in $DELAYTIME seconds"
sleep $DELAYTIME
sleep "$DELAYTIME"
logger -s -t "ffac-weeklyreboot" -p 5 "sheduled reboot in 5 seconds"
sleep 5
# Autoupdate?
# Autoupdate?
upgrade_started='/tmp/autoupdate.lock'
if [ -f $upgrade_started ] ; then
logger -s -t "ffac-weeklyreboot" -p 5 "Autoupdate läuft! Aborting"
Expand Down
2 changes: 1 addition & 1 deletion ffac-weeklyreboot/gluonShellDiet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

# This script requires a file as argument in which it will remove all comment lines that start with a hash '#'

sed -i '/^\s*\#[^!].*/d; /^\s*\#$/d' $1
sed -i '/^\s*\#[^!].*/d; /^\s*\#$/d' "$1"

0 comments on commit 5ead058

Please sign in to comment.