shell-host/apps/chromium/chromium.inst

21 lines
593 B
Plaintext
Raw Normal View History

#!/bin/bash
function chromium_install {
local target
local dir="$(dirname $(realpath "${BASH_SOURCE:-$0}"))"
local script=$dir/chromium.func
# todo call distro specific install
[[ ! -f $script ]] && echo can not find script chromium function at $script && return 2
target=${1:-/opt/bin}/chromium
chmod +rx $script
ln -sf $script $target
echo link to $script created at $target
ls -la /opt/bin | grep chromium
echo with permissions
ls -la $script
}
# if script was executed then call the function
(return 0 2>/dev/null) || chromium_install $@