fix paths

This commit is contained in:
Mylloon 2023-10-08 19:43:22 +02:00
parent 1837aae7cc
commit 7891a9054f
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 7 additions and 7 deletions

View file

@ -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

View file

@ -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