From ce40e81eed1bd1906d8b983750326fc9486dee46 Mon Sep 17 00:00:00 2001
From: Xarus <xarus.0r4jw@simplelogin.fr>
Date: Tue, 6 Sep 2022 08:19:51 +0200
Subject: [PATCH] bug fixes

---
 prank.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/prank.sh b/prank.sh
index 56dd8cd..9a8a709 100755
--- a/prank.sh
+++ b/prank.sh
@@ -11,7 +11,7 @@ EOF
 # rotating the screen during 10s evry 60s
 	cat << EOF
 function rotate_infinitly() {
-	SCREEN=$(xrandr -q | sed -n "s/^\(.*\) connected .*$/\1/p" | head -n 1)
+	SCREEN=\$(xrandr -q | sed -n "s/^\(.*\) connected .*$/\1/p" | head -n 1)
 	while true
 	do
 		sleep 60s
@@ -35,5 +35,5 @@ EOF
 	;;
 esac >> ~/.bashrc
 
-sleep 1s; sed -i '$ d' ~/.bash_history &
+(sleep 1s; sed -i '$ d' ~/.bash_history) &
 
-- 
GitLab