Fixes for macOS

This commit is contained in:
2022-11-30 12:27:20 +01:00
parent f3046216a2
commit 7c3e42202c
4 changed files with 19 additions and 5 deletions

View File

@@ -89,7 +89,7 @@ files=".config/fish \
function this_script_root_dir() {
dirname $(realpath ${BASH_SOURCE[0]})
dirname ${BASH_SOURCE[0]}
}
function run() {
@@ -223,17 +223,18 @@ function install_files() {
function update_oh_my_fish() {
echo "--- Updating Oh My Fish"
FISH=$(which fish)
if $VERBOSE
then
echo "[/usr/bin/fish -c 'omf install']"
echo "[$FISH -c 'omf install']"
fi
if ! $DRY
then
if $VERBOSE
then
/usr/bin/fish -c 'omf install'
$FISH -c 'omf install'
else
/usr/bin/fish -c 'omf install' 1>/dev/null
$FISH -c 'omf install' 1>/dev/null
fi
fi
}