Skip to content

Commit c097182

Browse files
committed
Fix escaping
1 parent e4a8ed9 commit c097182

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lab/scripts/setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ touch ~/.bashrc.d/workshop-env.bash
2828

2929
cat << EOT > /home/ec2-user/.bashrc.d/aliases.bash
3030
function prepare-environment() {
31-
start_time=$(date +%s)
31+
start_time=\$(date +%s)
3232
bash /usr/local/bin/reset-environment \$1
3333
exit_code=\$?
3434
source ~/.bashrc.d/workshop-env.bash
35-
echo "Execution time: $(($(date +%s) - start_time)) seconds"
35+
echo "Execution time: \$((\$(date +%s) - start_time)) seconds"
3636
return \$exit_code
3737
}
3838

0 commit comments

Comments
 (0)