Skip to content

Commit

Permalink
escape alias strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Camille Scholtz committed Jun 8, 2016
1 parent 1aa905b commit 48c0be1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions neet
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# neet - A script to easily play and manage your anime/drama/series
# onodera, https://github.com/onodera-punpun

# TODO: doesn't work with directories or files a ' in it

## CONFIGURATION

# Set user config dir location
Expand Down Expand Up @@ -118,7 +116,7 @@ function directory
# Create alias
if test -n $path
echo 'Show initialized. (alias set)'
echo "set alias '$name' '$path'" >$configdir/alias
echo 'set alias '(string escape $name)' '(string escape $path) >$configdir/alias
else
echo 'No '(set_color $highlight)'directory'(set_color normal)' match.'
exit 1
Expand Down

0 comments on commit 48c0be1

Please sign in to comment.