]> gitweb.morketsmerke.org Git - immudex.git/commitdiff
Poprawienie błędów w kodzie narzędzia immudex-distrobox-unlock-ds - addon distrobox.
authorxf0r3m <jakubstasinski@protonmail.com>
Sat, 16 Mar 2024 16:41:36 +0000 (17:41 +0100)
committerxf0r3m <jakubstasinski@protonmail.com>
Sat, 16 Mar 2024 16:41:36 +0000 (17:41 +0100)
addons/distrobox

index 9bac39a4c854a12dd9ee8be9d16291dc1d85251c..b6bb696dbcd803d2b24943b0f94992f9c360d20b 100644 (file)
@@ -22,8 +22,8 @@ chmod 544 /usr/local/sbin/immudex-distrobox-swap-root;
 cat >> /usr/local/bin/immudex-distrobox-unlock-ds << EOF
 #!/bin/bash
 
-userCT=\$(distrobox-list | grep 'Up' | awk '{printf $3" "}');
-rootCT=\$(distrobox-list --root | grep 'Up' | awk '{printf $3" "}');
+userCT=\$(distrobox-list | grep 'Up' | awk '{printf \$3" "}');
+rootCT=\$(distrobox-list --root | grep 'Up' | awk '{printf \$3" "}');
 
 if [ "\$userCT" ]; then distrobox-stop --all; fi
 
@@ -35,6 +35,6 @@ if [ "\$rootCT" ]; then
 fi
 
 catatonitPID=\$(pidof catatonit);
-if [ "\$catatonit" ]; then sudo kill \$(pidof catatonit); fi
+if [ "\$catatonitPID" ]; then sudo kill \$(pidof catatonit); fi
 EOF
 chmod 755 /usr/local/bin/immudex-distrobox-unlock-ds;