Displaying 1 result from an estimated 1 matches for "ignore_next".
2016 Aug 05
4
Fwd: Re: Encrypt /decrypta file with ssh keys.
...4085
-------------- next part --------------
#!/bin/bash
# this is the proof of concept for secure file command.
# usage: sfile [-e|-d] [-k <pub_private_key>] <file_path>
# result is written to stdout.
subcommand='decrypt'
user_key=''
user_file=''
ignore_next='0'
BASH_ARGV_LEN=$((${#BASH_ARGV}-1))
for i in `seq $BASH_ARGV_LEN -1 0 `; do
if [ $ignore_next == '0' ]; then
if [ "X${BASH_ARGV[$i]}" == 'X-d' ]; then
subcommand='decrypt'
elif [ "X${BASH_ARGV[$i]}" == 'X-e'...