#226 add check for user's existing shares. If no shares, print out "user has no shares"

thanks @RXWatcher
This commit is contained in:
blacktwin 2020-06-14 15:48:20 -04:00
parent 36aa2dd3a3
commit 5bf7925585

View File

@ -457,8 +457,10 @@ if __name__ == "__main__":
kill_session(user, kill)
time.sleep(3)
unshare(user, sections_lst)
elif opts.unshare:
elif opts.unshare and user_shares_lst:
unshare(user, sections_lst)
elif opts.unshare and not user_shares_lst:
print('{} has no libraries shared...'.format(user))
elif kill:
kill_session(user, kill)