aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-07-16 12:32:27 -0500
committerJesús <heckyel@hyperbola.info>2021-07-16 12:32:27 -0500
commit8d264c1cff1c8b151ead843822883542627de919 (patch)
treee8a9ebaf2dbbf96b3b2a4efe5cc509d083b0073e
parentbd968ccf87b3803b156448a15c5af02400bf68bb (diff)
downloadhyperfi-8d264c1cff1c8b151ead843822883542627de919.tar.lz
hyperfi-8d264c1cff1c8b151ead843822883542627de919.tar.xz
hyperfi-8d264c1cff1c8b151ead843822883542627de919.zip
$/${} is unnecessary on arithmetic variables
-rw-r--r--hyperfi6
1 files changed, 3 insertions, 3 deletions
diff --git a/hyperfi b/hyperfi
index e735296..62a6797 100644
--- a/hyperfi
+++ b/hyperfi
@@ -254,7 +254,7 @@ diskpartautodos(){
sleep 1
echo "${txtautopartcreate//%1/swap}"
swapsize=$(grep MemTotal /proc/meminfo | awk '{ print $2 }')
- swapsize=$((${swapsize}/1000))"M"
+ swapsize=$((swapsize/1000))"M"
echo -e "n\np\n\n\n+${swapsize}\nt\n\n82\nw" | fdisk ${device}
sleep 1
echo "${txtautopartcreate//%1/root}"
@@ -289,7 +289,7 @@ diskpartautogpt(){
sgdisk ${device} -n=2:0:+512M
echo "${txtautopartcreate//%1/swap}"
swapsize=$(grep MemTotal /proc/meminfo | awk '{ print $2 }')
- swapsize=$((${swapsize}/1000))"M"
+ swapsize=$((swapsize/1000))"M"
sgdisk ${device} -n=3:0:+${swapsize} -t=3:8200
echo "${txtautopartcreate//%1/root}"
sgdisk ${device} -n=4:0:0
@@ -320,7 +320,7 @@ diskpartautoefi(){
sgdisk ${device} -n=1:0:+1024M -t=1:ef00
echo "${txtautopartcreate//%1/swap}"
swapsize=$(grep MemTotal /proc/meminfo | awk '{ print $2 }')
- swapsize=$((${swapsize}/1000))"M"
+ swapsize=$((swapsize/1000))"M"
sgdisk ${device} -n=3:0:+${swapsize} -t=3:8200
echo "${txtautopartcreate//%1/root}"
sgdisk ${device} -n=4:0:0