diff options
Diffstat (limited to 'Keywords/shell.ucl')
-rw-r--r-- | Keywords/shell.ucl | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Keywords/shell.ucl b/Keywords/shell.ucl index 70a21ad4fd4b..16a094eaca95 100644 --- a/Keywords/shell.ucl +++ b/Keywords/shell.ucl @@ -13,12 +13,20 @@ actions: [file] post-install: <<EOD + case "%@" in + /*) file="%@" ;; + *) file="%D/%@" ;; + esac cp /etc/shells /etc/shells.bak - (grep -v %D/%@ /etc/shells.bak; echo %D/%@) > /etc/shells + (grep -v ${file} /etc/shells.bak; echo ${file}) > /etc/shells rm -f /etc/shells.bak EOD pre-deinstall: <<EOD + case "%@" in + /*) file="%@" ;; + *) file="%D/%@" ;; + esac cp /etc/shells /etc/shells.bak - grep -v %D/%@ /etc/shells.bak > /etc/shells + grep -v ${file} /etc/shells.bak > /etc/shells rm -f /etc/shells.bak EOD |