install: add qt

This commit is contained in:
2 * r + 2 * t
2025-03-29 16:40:54 +11:00
parent f0f7a46ca7
commit 0bfcbbf0dc
5 changed files with 32 additions and 12 deletions
+10
View File
@@ -116,3 +116,13 @@ function install-link -a from to
ln -s $from $to
end
end
function confirm-copy -a from to
test -L $to -a "$(realpath $to 2> /dev/null)" = (realpath $from) && return # Return if symlink
cmp $from $to &> /dev/null && return # Return if files are the same
if test -e $to
read -l -p "input '$(realpath $to) already exists. Overwrite? [y/N] ' -n" confirm
test "$confirm" = 'y' -o "$confirm" = 'Y' && log 'Continuing.' || return
end
cp $from $to
end