This commit is contained in:
parent
86f3399a53
commit
f77b1ce331
1 changed files with 14 additions and 5 deletions
|
@ -8,11 +8,17 @@ set \
|
|||
-o pipefail
|
||||
|
||||
# GTK theme integration (we have Qt fetch the GTK theme mirroring the host Qt theme...)
|
||||
# Currently broken with portals
|
||||
#export QT_QPA_PLATFORMTHEME=kde
|
||||
|
||||
# Check if the last parameter is a file, and if so, add the argument "--no-checks-for-updates" BEFORE it.
|
||||
last="${@:$#}" # last parameter
|
||||
|
||||
length=$(($#-1))
|
||||
|
||||
echo "Len: $length"
|
||||
|
||||
if [ $length -gt 0 ]; then
|
||||
last="${@:$#}" # last parameter
|
||||
args=("${@:1:$length}") # all parameters except the last
|
||||
|
||||
if [ -f "$last" ]; then
|
||||
|
@ -20,3 +26,6 @@ if [ -f "$last" ]; then
|
|||
else
|
||||
${@} --no-check-for-updates
|
||||
fi
|
||||
else
|
||||
${@} --no-check-for-updates
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue