Skip to content

Commit

Permalink
Remove duplicate pkexec and sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbruno committed May 12, 2024
1 parent 6185e75 commit 640b37c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions usr/bin/calamares-biglinux
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ fi
# disable swap on disk
for diskswap in $(blkid | grep 'TYPE="swap"' | grep -v zram | cut -f1 -d:)
do
sudo swapoff $diskswap
swapoff $diskswap
done

if [ "${LANG:0:2}" = "pt" ]
Expand Down Expand Up @@ -381,8 +381,8 @@ QT_QUICK_BACKEND=software QMLSCENE_DEVICE=softwarecontext QTWEBENGINE_CHROMIUM_F

# Start calamares
if [ -e "/tmp/start_calamares" ]; then
sudo cp -f /usr/share/biglinux/themes/biglinux/.config/kdeglobals /root/.config/kdeglobals
pkexec -E /usr/bin/calamares-manjaro -d
cp -f /usr/share/biglinux/themes/biglinux/.config/kdeglobals /root/.config/kdeglobals
/usr/bin/calamares-manjaro -d

#Calamares failed to install
if [ "$(grep -w completion /root/.cache/calamares/session.log | grep -v bash-completion | rev | cut -d ":" -f1 | rev | sed 's/^[ \t]*//;s/[ \t]*$//')" != "succeeded" ];then
Expand Down

0 comments on commit 640b37c

Please sign in to comment.