Fix publishing not working.
This commit is contained in:
parent
821fca68d9
commit
7ce24d937c
@ -36,16 +36,15 @@ remove_file() {
|
||||
fi
|
||||
}
|
||||
|
||||
if [ $# -ne 2 ]; then
|
||||
if [ "$1" = "pub" ]; then
|
||||
publish
|
||||
exit 0
|
||||
elif [ $# -ne 2 ]; then
|
||||
echo "You need to provide action and file name."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
pub)
|
||||
publish "$2"
|
||||
exit 0
|
||||
;;
|
||||
edit)
|
||||
open_file "$2"
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user