diff options
author | Arch Nous | 2015-06-11 15:51:10 +0300 |
---|---|---|
committer | Arch Nous | 2015-06-11 15:51:10 +0300 |
commit | 5bf12550b0ce299c40f8a8ffba22bae5a21ffbe3 (patch) | |
tree | 288e53fc7cb08a93cc5b82bbc7fd452946cc9ed9 /pisg.install | |
download | aur-5bf12550b0ce299c40f8a8ffba22bae5a21ffbe3.tar.gz |
Initial import
Diffstat (limited to 'pisg.install')
-rw-r--r-- | pisg.install | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pisg.install b/pisg.install new file mode 100644 index 000000000000..5549296c7828 --- /dev/null +++ b/pisg.install @@ -0,0 +1,15 @@ +pre_upgrade() { + [[ -e /etc/pisg ]] && { + echo "Backing up your layout-directory (/etc/pisg/layout) to /etc/pisg/backup" + [[ ! -e /etc/pisg/backup ]] && { + mkdir -v /etc/pisg/backup + } + cp -av /etc/pisg/layout /etc/pisg/backup + } + /bin/true +} + +op=$1 +shift +$op $* + |