Commit 748146e1 authored by Charles Ferguson's avatar Charles Ferguson
Browse files

Fix for 'if' statement incorrect syntax for 'fish'.

The fish code that checked for the file needing to be deleted was
using the bash syntax, not the fish syntax.
parent d5bb3678
...@@ -74,7 +74,7 @@ if [ "\$__PERLLIB_MAGIC" = "$__magic_value" ] ...@@ -74,7 +74,7 @@ if [ "\$__PERLLIB_MAGIC" = "$__magic_value" ]
rm "\$me" rm "\$me"
else else
set -l hours_ago (math \\( (date +%s) - (stat --format '%Z' "\$me") \\) / \\( 60 \\* 60 \\)) set -l hours_ago (math \\( (date +%s) - (stat --format '%Z' "\$me") \\) / \\( 60 \\* 60 \\))
if test \$hours_ago -ge 2 ; then if test \$hours_ago -ge 2
# This script hasn't been used for over 2 hours - something has # This script hasn't been used for over 2 hours - something has
# gone wrong, and it's not going to be invoked. It should really # gone wrong, and it's not going to be invoked. It should really
# have been run within moments. # have been run within moments.
......
...@@ -74,7 +74,7 @@ if [ "\$__PYTHONLIB_MAGIC" = "$__magic_value" ] ...@@ -74,7 +74,7 @@ if [ "\$__PYTHONLIB_MAGIC" = "$__magic_value" ]
rm "\$me" rm "\$me"
else else
set -l hours_ago (math \\( (date +%s) - (stat --format '%Z' "\$me") \\) / \\( 60 \\* 60 \\)) set -l hours_ago (math \\( (date +%s) - (stat --format '%Z' "\$me") \\) / \\( 60 \\* 60 \\))
if test \$hours_ago -ge 2 ; then if test \$hours_ago -ge 2
# This script hasn't been used for over 2 hours - something has # This script hasn't been used for over 2 hours - something has
# gone wrong, and it's not going to be invoked. It should really # gone wrong, and it's not going to be invoked. It should really
# have been run within moments. # have been run within moments.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment