Skip to content

Commit

Permalink
Now bash beautification
Browse files Browse the repository at this point in the history
  • Loading branch information
karasu committed Sep 23, 2017
1 parent 02d8963 commit 390ef2d
Show file tree
Hide file tree
Showing 4 changed files with 282 additions and 283 deletions.
2 changes: 1 addition & 1 deletion cnchi/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

""" Set some Cnchi global constants """

CNCHI_VERSION = "0.14.357"
CNCHI_VERSION = "0.14.358"
CNCHI_WEBSITE = "http://www.antergos.com"
CNCHI_RELEASE_STAGE = "production"

Expand Down
13 changes: 6 additions & 7 deletions run
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
# Please, do not use if your intention is to do a "normal" installation

cleanup() {
if [[ -h /usr/share/cnchi ]]; then
sudo unlink /usr/share/cnchi
sudo mv /usr/share/cnchi.tmp /usr/share/cnchi > /dev/null 2>&1
fi
sudo killall python3 > /dev/null 2>&1
if [[ -h /usr/share/cnchi ]]; then
sudo unlink /usr/share/cnchi
sudo mv /usr/share/cnchi.tmp /usr/share/cnchi > /dev/null 2>&1
fi
sudo killall python3 > /dev/null 2>&1
}

trap cleanup EXIT

if [[ -d /usr/share/cnchi ]] && ! [[ -h /usr/share/cnchi ]]; then
sudo mv /usr/share/cnchi /usr/share/cnchi.tmp > /dev/null 2>&1
sudo mv /usr/share/cnchi /usr/share/cnchi.tmp > /dev/null 2>&1
fi

CNCHI_DIR=`pwd`
Expand All @@ -36,4 +36,3 @@ fi
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY GTK_DEBUG=interactive $CNCHI_DIR/bin/cnchi $_CNCHI_OPTIONS -p $_XML ${@} 2>&1

exit 0

Loading

0 comments on commit 390ef2d

Please sign in to comment.