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
|
end
|
||||||
|
|
||||||
# Check if directory exists
|
# Check if directory exists
|
||||||
set directory $argv[1]
|
set directory "$argv[1]"
|
||||||
if not test -d $directory
|
if not test -d "$directory"
|
||||||
echo "Directory doesn't exists." 1>&2
|
echo "Directory doesn't exists." 1>&2
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
|
@ -27,7 +27,7 @@ function makeaway
|
||||||
end
|
end
|
||||||
|
|
||||||
# Make
|
# Make
|
||||||
cd $directory
|
cd "$directory"
|
||||||
make $target
|
make $target
|
||||||
cd -
|
cd -
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
function ssh-export
|
function ssh-export
|
||||||
# Save the entry directory
|
# Save the entry directory
|
||||||
set entry_directory $PWD
|
set entry_directory "$PWD"
|
||||||
|
|
||||||
# Create the archive
|
# Create the archive
|
||||||
cd $HOME/.ssh
|
cd "$HOME/.ssh"
|
||||||
tar cz --exclude='known_hosts*' -X environment -f '$HOME/SSH.tar.gz' *
|
tar cz --exclude='known_hosts*' -X environment -f "$HOME/SSH.tar.gz" *
|
||||||
|
|
||||||
# Returns to the entry directory
|
# Returns to the entry directory
|
||||||
cd $entry_directory
|
cd "$entry_directory"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue