From a938d55749a9386a9f0ba4e2152a5a31f7f9c886 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 2 Oct 2017 16:20:15 +0200 Subject: add option to force system-update --- bin/pacman-offline | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/pacman-offline b/bin/pacman-offline index 8f86868..79eb1bd 100755 --- a/bin/pacman-offline +++ b/bin/pacman-offline @@ -5,12 +5,16 @@ set -e function help() { echo "usage: ${0} [OPTIONS]" echo + echo ' -f force if other system-update is pending' echo ' -h this help' echo ' -y update sync databases' } -while getopts 'hy' opt; do +while getopts 'fhy' opt; do case ${opt} in + f) + rm -f /system-update + ;; h) help exit 0 -- cgit v1.2.3-70-g09d2