link miaou-bash
This commit is contained in:
+1
-1
@@ -595,7 +595,7 @@ function on_exit {
|
|||||||
|
|
||||||
function build_miaou_bash_error {
|
function build_miaou_bash_error {
|
||||||
local directory
|
local directory
|
||||||
directory="/run/user/$UID/$(basename "$0")"
|
directory="/tmp/$(basename "$0")-$UID"
|
||||||
|
|
||||||
CHILD_PROCESS=false
|
CHILD_PROCESS=false
|
||||||
[[ -f "${directory}/${PPID}.tmp" ]] && CHILD_PROCESS=true
|
[[ -f "${directory}/${PPID}.tmp" ]] && CHILD_PROCESS=true
|
||||||
|
|||||||
+1
-9
@@ -18,15 +18,7 @@ readonly BACKUP='ORIGINAL'
|
|||||||
# FUNCTIONS
|
# FUNCTIONS
|
||||||
|
|
||||||
function usr_bin_miaou_bash {
|
function usr_bin_miaou_bash {
|
||||||
local source_bin="$MIAOU_BASH_DIR/bin/miaou-bash"
|
ln -sf "$MIAOU_BASH_DIR/bin/miaou-bash" /usr/bin/miaou-bash
|
||||||
local dest_bin="/usr/bin/miaou-bash"
|
|
||||||
if ! [[ -f "$dest_bin" ]]; then
|
|
||||||
cp -f "$source_bin" "$dest_bin"
|
|
||||||
echo "/usr/bin/miaou-bash created"
|
|
||||||
elif ! cmp -s "$source_bin" "$dest_bin"; then
|
|
||||||
cp -f "$source_bin" "$dest_bin"
|
|
||||||
echo "/usr/bin/miaou-bash updated"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function install_required_packages {
|
function install_required_packages {
|
||||||
|
|||||||
Reference in New Issue
Block a user