summaryrefslogtreecommitdiff
path: root/main.fish
diff options
context:
space:
mode:
Diffstat (limited to 'main.fish')
-rwxr-xr-xmain.fish6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.fish b/main.fish
index 3586c3d..5dbc043 100755
--- a/main.fish
+++ b/main.fish
@@ -34,9 +34,9 @@ end
if test "$argv[1]" = scheme
set -l valid_schemes (path change-extension '' $src/data/schemes/* | sed 's!.*/!!')
if contains -- "$argv[2]" $valid_schemes
- mkdir -p $CACHE/scheme
- cp $src/data/schemes/$argv[2].txt $CACHE/scheme/current.txt
- echo -n $argv[2] > $CACHE/scheme/current-name.txt
+ mkdir -p $C_STATE/scheme
+ cp $src/data/schemes/$argv[2].txt $C_STATE/scheme/current.txt
+ echo -n $argv[2] > $C_STATE/scheme/current-name.txt
else
error "Invalid scheme: $argv[2]"
end