From fd985e7a3486d693c3bf756c7ae2d12a9aa0f9d9 Mon Sep 17 00:00:00 2001 From: Steven Penny Date: Mon, 7 Dec 2015 21:09:20 -0600 Subject: [PATCH] Fix #69 --- apt-cyg | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apt-cyg b/apt-cyg index 6f5063f..7c5f349 100755 --- a/apt-cyg +++ b/apt-cyg @@ -128,9 +128,12 @@ function find-workspace { # work wherever setup worked last, if possible cache=$(awk ' - /last-cache/ { - getline - print $1 + BEGIN { + RS = "\n\\<" + FS = "\n\t" + } + $1 == "last-cache" { + print $2 } ' /etc/setup/setup.rc)