link miaou-bash

This commit is contained in:
pvincent
2026-08-12 22:24:37 +04:00
parent 6d10c08a30
commit 57c3a7e695
2 changed files with 2 additions and 10 deletions
+1 -1
View File
@@ -595,7 +595,7 @@ function on_exit {
function build_miaou_bash_error {
local directory
directory="/run/user/$UID/$(basename "$0")"
directory="/tmp/$(basename "$0")-$UID"
CHILD_PROCESS=false
[[ -f "${directory}/${PPID}.tmp" ]] && CHILD_PROCESS=true
+1 -9
View File
@@ -18,15 +18,7 @@ readonly BACKUP='ORIGINAL'
# FUNCTIONS
function usr_bin_miaou_bash {
local source_bin="$MIAOU_BASH_DIR/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
ln -sf "$MIAOU_BASH_DIR/bin/miaou-bash" /usr/bin/miaou-bash
}
function install_required_packages {