fix paths
This commit is contained in:
parent
1837aae7cc
commit
7891a9054f
2 changed files with 7 additions and 7 deletions
|
@ -9,8 +9,8 @@ function makeaway
|
|||
end
|
||||
|
||||
# Check if directory exists
|
||||
set directory $argv[1]
|
||||
if not test -d $directory
|
||||
set directory "$argv[1]"
|
||||
if not test -d "$directory"
|
||||
echo "Directory doesn't exists." 1>&2
|
||||
return 1
|
||||
end
|
||||
|
@ -27,7 +27,7 @@ function makeaway
|
|||
end
|
||||
|
||||
# Make
|
||||
cd $directory
|
||||
cd "$directory"
|
||||
make $target
|
||||
cd -
|
||||
end
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
function ssh-export
|
||||
# Save the entry directory
|
||||
set entry_directory $PWD
|
||||
set entry_directory "$PWD"
|
||||
|
||||
# Create the archive
|
||||
cd $HOME/.ssh
|
||||
tar cz --exclude='known_hosts*' -X environment -f '$HOME/SSH.tar.gz' *
|
||||
cd "$HOME/.ssh"
|
||||
tar cz --exclude='known_hosts*' -X environment -f "$HOME/SSH.tar.gz" *
|
||||
|
||||
# Returns to the entry directory
|
||||
cd $entry_directory
|
||||
cd "$entry_directory"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue